In my qss style sheet I define a background color
#sw_MainMiddle {
background: black;
}
Everything fine, but when I place a scroll QScrollArea
in the sw_MainMiddle
widget, the background color is gone. Obviously there is no chance to assign a background directly to QScrollArea
. Below code has no effect:
QScrollArea {
background: black;
}
According to this question I have used object name selector to re-assign the background color to the scroll area, no effect too:
#myScrollArea {
background: black;
}
Anything I am doing wrong?