Change the design in QTabWidget

Hi all!
My program has a QTabWidget. And QTabWidget has a QListWidget.
I don't like that QTabWidget is white, and I wanted to change the color to another(on example to gray, like in QDialog. )
So, when I changed the StyleSheet in QTabWidget, all things in this widget became gray. And QListWidget too. But I want to change only QTabWidget's color, and don't touch other things(QListWidget and other).

Once your problem is solved please do:
Use the Topic Tools button to mark as Solved and
Upvote the answer(s) that helped you to solve the issuepostimage.org can be used for screenshots.
Get on the inside track at https://www.qtworldsummit.com/

hi
it does work but it colors background of the QTabWidget, which is up where the
tabs are. it is NOT the area of the tabs area.
Not sure there are anything there to address.
else try with mainwindow with
Qwidget#NameOFhteQTabWidget {
background-color:#1d1d1d;
}

Once your problem is solved please do:
Use the Topic Tools button to mark as Solved and
Upvote the answer(s) that helped you to solve the issuepostimage.org can be used for screenshots.
Get on the inside track at https://www.qtworldsummit.com/

To style the content area of the tab you need to use QTabWidget::pane. As with many other widgets the background is drawn by a platform style and setting only the background color will not override it. A usual trick for that is setting a border too, which overrides the style and makes the widget use properties like background color: