How to have a QMenu with a single item
Unsolved
General and Desktop
-
I need to have a menu that does not have any sub menus i.e. just the top menu
I have tried this - but the text is truncated and not readablevoid Grab::GrabMenu::addMenuActions() { 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); }
Please can someone show me correct way of doing this
-
Hi,
Which version of Qt ?
On which OS ?
What is the text that is supposed to be shown ?
Please provide a minimal compilable example that shows the issue.