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`?
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.