PDA

View Full Version : make a flat QPushButton



harmodrew
6th August 2010, 17:08
Hello!
Do you know what property or method can help me to make a flat QPushButton?
I tried with SetAttribute but no attribute could help me...neither the Flat() method helped because the button gets invisible...

tbscope
6th August 2010, 17:16
This, I think, depends on how the style paints a flat button.

Hence, try setting a stylesheet

harmodrew
6th August 2010, 17:46
I solved with the style sheets with only this row of code:

button.setStyleSheet("background-color: white");

I ♥ Qt :D