[Qt-interest] How to hide a QPushButtons menu indicator

Chandru... sekarwagmare at gmail.com
Thu Jul 16 12:53:38 CEST 2009


yes this what i try to suggest ... none.jpg will override the icon to blank
..

On Thu, Jul 16, 2009 at 4:18 PM, Ender EREL <erelender at yahoo.com> wrote:

> There is nothing to implement. Style sheet will not be able to find
> "none.jpg" therefore the menu indicator will not be drawn. You just have
> to set the style sheet for your button to the given style sheet like this:
>
> myPushButton->setStyleSheet("QPushButton::menu-indicator{ image:
> url(none.jpg); }");
>
> --
> Ender EREL
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090716/1b90114d/attachment.html 


More information about the Qt-interest-old mailing list