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

Ender EREL erelender at yahoo.com
Thu Jul 16 12:48:40 CEST 2009


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



More information about the Qt-interest-old mailing list