How to create slot for QMenu.clicked
I want to run some code when QMenu is clicked, not its child QAction.
How to do that`?
QMenu has signal "triggered":http://qt-project.org/doc/qt-4.8/qmenu.html#triggered I think this is what you are looking for.
Is it QMenuBar::triggered() you are after? If you really mean QMenu, then what is the problem with using QAction?
I want to use QMenu but I don't want that it has a submenu.
So, I have a QMenuBar and many QMenus. These QMenus don't have submenus QAction, I have already tried with submenus and their triggered signal but howto edit these signals in the Designer, I can't right click on the QMenu, but only on the submenu and edit their signals.
This is how it looks like:
I don't want these QActions but more QMenus.