I am using Qt Creator. In my GUI, I use a tab widget. This widget should have the same gray background color as the main window (Figure A). I did this by editing the stylesheet in Qt Designer with:
background-colour: rgb(240, 240, 240);
But now I have two new problems that I cannot solve:
- The buttons (-> Submit) are no longer rounded.
- The background color of the edit window has also changed to gray.
Before I changed the stylesheet, the GUI looked like Figure B.
I tried too
QPalette pal = m_pUi->tabWidget->palette();
pal.setColor(m_pUi->tabWidget->backgroundRole(), Qt::blue);
m_pUi->tabWidget->setPalette(pal);
but this only changes the color behind the tabs, and not the entire color of the entire "tab-window-surface".
Do I need to make additional style descriptions or is there a simpler solution?

Figure A - with a style sheet

Image B - no stylesheet