How to change the color of the QWidget?
-
how to change the color of the QWidget?
i found setPalette, is there another way ?
and how to use stylesheet? is there any sample?
if i wanted to paint the background of the widget by myself, should i only overrider the paint(), and is there any sample as well?
thank you -
Hi,
Please take a look at Qt's documentation, examples and demo. You have everything there for each of your question.
-
-
Qt stylesheet reference: