-
QPushButton #evilButton {
-
background -color : red ;
-
border -style : outset ;
-
border -width : 2px ;
-
border -radius : 10px ;
-
border -color : beige ;
-
font : bold 14px ;
-
min -width : 10em ;
-
padding : 6px ;
-
}
listView->setStyleSheet("color:black;""selection-background-color:transparent;" "selection-color:black;""padding:2px");
对与同一个部件的QSS要放在一个setStyleSheet中,如果同一个部件用多个setStyleSheet就会冲掉前面的设定。