What doesn't work?
What doesn't work?
Got to keep the loonies on the path ...
the button has yellow bacground only when it is pressed
is it because the
?
if yes- can i have a "flat" button with yellow background?
To quote the documentation:
So yes, when you use setFlat, it doesn't work the way you want.If this property is set, most styles will not paint the button background unless the button is being pressed.
Try using QPushButton:flat in your stylesheet, and set the background in there.
However, why do you even want to use setFlat (why did Nokia even include it?). You can get something completely similar using a stylesheet.
http://doc.qt.nokia.com/4.6/styleshe...ng-qpushbutton
didn't know about that feature, thanks
one more thing: how do You include a .qss file in a VS 2008 project? so it can be properly compiled?
Bookmarks