Unsolved How to assign a signal to a QMenu instead of QAction in Qt?
-
i want a menu which when pressed has to trigger instead of creating a sub action menu i want to do those with the Qmenu how can this be done?
-
Hi
There will still be an action.
But you don't have to create submenus.
https://stackoverflow.com/questions/6370793/how-to-assign-a-signal-to-a-qmenu-instead-of-qaction-in-qtBut if you use top-level menus as buttons then consider using QToolBar instead.