I have a menu that has only one item i.e. no sub menu actions
I have tried the following but of course I a get a sub item
m_grabMenu = new QMenu(tr("Grab"));
m_grabActionMenu = m_menuBar->addMenu(m_grabMenu);
QAction* grabAction = Mind::Utilities::CreateThemeAction(m_parent, m_menuBar->objectName()
, "Grab "
, "/images/info.png"
, "tp", false);
m_grabMenu->addAction(grabAction);
connect(grabAction, &QAction::triggered, this, &Grab::GrabMenu::GrabSL);
I also tried this and it gives me what I need – Almost! – The action text is truncated
QAction* grabAction = Mind::Utilities::CreateThemeAction(m_parent, m_menuBar->objectName()
, "Grab "
, "/images/info.png"
, "tp", false);
m_menuBar->addAction(grabAction);
connect(grabAction, &QAction::triggered, this, &Grab::GrabMenu::GrabSL);
enter image description here
2