Qt-interest Archive, August 2007
QToolButton to look like a QPushButton when in MenuButtonPopup mode
Message 1 in thread
Hey guys,
I need to use a QToolButton with a pop-up menu (MenuButtonPopup mode). For
example, the back and forward buttons in firefox have this functionality.
The thing is that the arrow that shows that there is a menu is HUGE when using
a QToolButton. Almost the same height as the pixmap icon, and displayed next
to the actual button. On the other hand, a QPushButton has a nice small arrow
in the lower right corner, just like firefox, but it doesn't have the same
functionality.
Did I miss something? Anyone been here before?
Thanks,
Pete
--
[ signature omitted ]
Message 2 in thread
Pete Black wrote:
> Hey guys,
>
> I need to use a QToolButton with a pop-up menu (MenuButtonPopup mode). For
> example, the back and forward buttons in firefox have this functionality.
>
> The thing is that the arrow that shows that there is a menu is HUGE when
> using a QToolButton. Almost the same height as the pixmap icon, and
> displayed next to the actual button. On the other hand, a QPushButton has
> a nice small arrow in the lower right corner, just like firefox, but it
> doesn't have the same functionality.
>
> Did I miss something? Anyone been here before?
You could try to alter the apearance using a style sheet?
André
--
[ signature omitted ]
Message 3 in thread
On 8/13/07, Andrà Somers <andre@xxxxxxxxx> wrote:
>
> Pete Black wrote:
>
> > Hey guys,
> >
> > I need to use a QToolButton with a pop-up menu (MenuButtonPopup mode).
> For
> > example, the back and forward buttons in firefox have this
> functionality.
> >
> > The thing is that the arrow that shows that there is a menu is HUGE when
> > using a QToolButton. Almost the same height as the pixmap icon, and
> > displayed next to the actual button. On the other hand, a QPushButton
> has
> > a nice small arrow in the lower right corner, just like firefox, but it
> > doesn't have the same functionality.
> >
> > Did I miss something? Anyone been here before?
> You could try to alter the apearance using a style sheet?
>
> AndrÃ
> --
> thermiek is een keuze!
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
Excellent, thanks AndrÃ. I forgot just how powerful the Qt style sheets are.
If anyone else is interested here is the info I missed:
http://doc.trolltech.com/4.3/stylesheet-examples.html#customizing-qtoolbutton
Pete