Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to change the color of the QWidget?
opengpu last edited by
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?
Please take a look at Qt's documentation, examples and demo. You have everything there for each of your question.
IamSumit last edited by
ralmeida last edited by
Qt stylesheet reference: