Stylesheet: Improved selector for QScrollArea

This commit is contained in:
Klaus Basan
2016-07-24 01:31:00 +02:00
parent 9fe6d7417f
commit e2c3857b6b

View File

@@ -367,7 +367,9 @@ QScrollArea {
}
/* have to set background on widget in scroll area, cannot set directly on scroll area */
QScrollArea QWidget {
/* The inner widget I want to modify is on 2nd level. QScrollArea > QWidget selects too many */
/* http://doc.qt.io/qt-4.8/stylesheet-syntax.html */
QScrollArea > * > QWidget {
background: black; /* background is background color here */
background-image: url(:/textures/icons/textures/texture-inner.jpg);
}