1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
// This comment will not appear in generated css file
/* This comment will appear in generated css file */
// !editable is not valid sass/css but is tolerated in qtsass since widespread in Qt stylesheets.
QComboBox:!editable:on, QComboBox::drop-down:editable:on
{
color: blue;
}
// standard qss qlineargradient syntax works
QListView::item:selected{
background-color: qlineargradient(
x1: 0,
y1: 0,
x2: 0,
y2:1,
stop: 0.2 #3f3f3f,
stop: 0.8 red
);
}
// You may also use QtSASS syntax directly
QTreeView::item:selected{
$start: 0.2;
$stops: $start #3f3f3f, $start + 0.6 red;
background-color: qlineargradient(0, 0, 0, 1, $stops);
color: rgba(255, 10, 10, 0.5);
}
|