how to create slot for QMenu.clicked
Hello,
I want to run some code when QMenu is clicked, not its child QAction.
How to do that`?
3 replies
Hello,
QMenu has signal triggered [qt-project.org] I think this is what you are looking for.
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.
You must log in to post a reply. Not a member yet? Register here!


