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...
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...
This, I think, depends on how the style paints a flat button.
Hence, try setting a stylesheet
I solved with the style sheets with only this row of code:
Qt Code:
button.setStyleSheet("background-color: white");To copy to clipboard, switch view to plain text mode
I ♥ Qt
Bookmarks