[Interest] Default action for a QMenu added to a QToolBar
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Tue Aug 20 19:27:03 CEST 2013
Dear all,
I inserted a QMenu to a QToolBar. This displays the menu icon, together
with a drop-down arrow for opening the menu.
Clicking the menu icon in the toolbar does nothing, as the menu action is
connected to nothing.
Is it possible to either:
- Set the default child action that will be triggered when the main menu
icon is clicked (setDefaultAction doesn't do the job)
- Popup the menu when the main menu icon is clicked (as when clicking the
dropdown arrow)
Thanks,
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130820/d51c2bc5/attachment.html>
More information about the Interest
mailing list