Hello!
I need to set backgrounds for my widgets. I use the global css-file and set it using qApp->setStyleSheet.
At css-file, I need to set separately colors for all widgets and QTabWidget::pane subcontol. So I write:

Qt Code:
  1. {
  2. background-color: blue;
  3. color: white;
  4. }
  5.  
  6. QTabWidget::pane{
  7. border-top: 1px solid grey;
  8. background-color: red;
  9. }
To copy to clipboard, switch view to plain text mode 

The problem is - QWidget's style's background is preffered over QTabWidget::pane. If I comment out QWidget's background-color, the QTabWidget::pane background-color works fine and I see the red background. But if QWidget's background-color is set, the QTabWidget::pane will be the same as QWidget's background-color.
How to solve this problem?