Hello all,
I'm new to QT and I apologize if this has been has been asked before but I can't see to find this info anywhere.
using QT 4.3.3 on OpenSuse 10.3
I have QpushButtons that are being dynamically created and added to a layout in a frame.
How do I make a QPushButton not have a gradient for the background color? I'm setting the style sheet of the button to be:
Qt Code:
pushButton->setStyleSheet{"background-color: white; color:black;}";To copy to clipboard, switch view to plain text mode
and when I see the button on the screen it's not solid while with black text. The background is a white to grey gradient. I know I could create an all white image and use that as the background, but it seems like there should be a straight forward way to do this.
So is there a way to do this using the style sheet or do I need another approach, like modifing the Brush in the control's palette.
Thanks for your time.
Bookmarks