ui->treeWidget->setStyleSheet("::item { margin-top:2; margin-bottom:2; min-height:20;} "
"::item:selected:!active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(255,211,159), stop: 0.4 rgb(254,180,72), stop: 1 rgb(254,222,119));}"
"::item:selected:active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(66,180,255), stop: 1 rgb(0,152,255)); }"
"::item:hover { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(247,235,224), stop: 1 rgb(255,211,159));}");
ui->treeWidget->setStyleSheet("::item { margin-top:2; margin-bottom:2; min-height:20;} "
"::item:selected:!active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(255,211,159), stop: 0.4 rgb(254,180,72), stop: 1 rgb(254,222,119));}"
"::item:selected:active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(66,180,255), stop: 1 rgb(0,152,255)); }"
"::item:hover { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, "
"stop: 0 rgb(247,235,224), stop: 1 rgb(255,211,159));}");
To copy to clipboard, switch view to plain text mode
Didn't get any warnings but maybe there is a problem parsing your css file.
Bookmarks