I would like to change the default background colour of my QT-application (QT 4.8.6 based) to a different (darker) grey. I did this by adding
background-color: #A3A3A3;
to the QWidget-section in my QSS file. This works well, with the exception of the tabs. When I don't have this line the tabs in my application look OK, so the selected tab does not have a line between the tab and the tab-widget, all the others have a border (works for both top and bottom tabs).
When I add the background-color the line between the (unselected) tabs and the tab-widget disappears, both for top and bottom tabs. I tried adding a border to the tab-widget-pane, but this also adds a border between the selected tab and the tab-widget.
How can I change the background colour of my application and still have the tabs look as they should?
Update:
As requested the QSS file. I removed everything not related to this issue:
QWidget
{
font-weight: bold;
background-color: #A3A3A3;
}
QTabBar::tab:!selected
{
font-weight: normal;
}
With this QSS file the background is darker, but there are no lines between the tabs and the pane. When I disable the background-color line the tabs are shown OK (but the window becomes light-gray of course).
Also an image indicating the problem: