Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to set the BG color of qMainWindow
-
Currently i am setting the color of the QMainWindow using this line of code.
w.setStyleSheet("QMainWindow {background: 'lightgrey';}");
How can i set the color by RGB values like (255 , 255 ,255)
-
Hi,
You can use
rgb(255, 255, 255)
. There's an example here in the documentation.