[Interest] Default action for a QMenu added to a QToolBar

Christoph Feck christoph at maxiom.de
Tue Aug 20 19:57:25 CEST 2013

On Tuesday 20 August 2013 19:27:03 Etienne Sandré-Chardonnal wrote:
> 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


More information about the Interest mailing list