[Qt-interest] Can I raise 2 toolbar icons at the same time?

Andre Somers andre at familiesomers.nl
Wed May 26 07:15:09 CEST 2010


Op 26-5-2010 6:46, Bob Babcock schreef:
> I would like to have a pair of toolbar buttons with the following
> properties:
>
> 1. The first button triggers a simple action, say print.
> 2. The second button pulls down a menu of related actions, say print
> preview, page setup,...
> 3. When the mouse cursor is over either button, both icons raise up.
> 4. When both icons are raised, a vertical divider line makes it clear that
> there are two buttons.
>
> It's number 3 (and maybe 4) that I don't know how to do.  Any suggestions?
> An example of this in a non-Qt program is the print icon in Internet
> Explorer 8.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>    
Just to be clear: you are aware of 
QToolButton::setPopupMode(QToolButton::MenuButtonPopup) and 
QToolButton::setMenu?

André



More information about the Qt-interest-old mailing list