[Qt-interest] How to create an action with additional dropdown "button" that opens a menu?

Sven Grunewaldt strayer at olle-orks.org
Wed Feb 11 11:38:04 CET 2009


Am 10.02.2009 21:48, schrieb Malyushytsky, Alex:
>>> is it possible to create an action for a QToolBar that has a dropdown
>>>        
> button on its side?
>
> Look for QToolButton (setPopupMode( QToolButton::MenuButtonPopup )) in documentation.
>
> Regards,
>   Alex Malyushytsky
>
>
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
>
> "This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
>
> "Please consider our environment before printing this email."
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>    
Thanks, exactly what I was looking for!

I created a QToolButton, added the menu with setMenu and added it to the 
toolbar with addWidget().
Works perfectly!

Regards,
Sven Grunewaldt



More information about the Qt-interest-old mailing list