When I changed the background color of Qt group box so combobox background color is also changed. Which is inside the group box. I want default color of combobox so this is why i am not changing the bg-color of combobox. Please tell me how can I change the background color of Qt group box without changing default bg-color of inside items. I changed the background of QT group box using style sheet in qt designer (ui). I am beginner please help.
you should follow these steps :
this is the Stylesheet :
QGroupBox#gBox1 { background-color: rgb(138, 226, 52); }
first, you should set which kind of class you want like QGroupBox
, and for set style, to the specific object you call its object name after #
.