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

http://qt-project.org/doc/qt-4.8/qtoolbutton.html#ToolButtonPopupMode-enum
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to