PDA

View Full Version : QListWidget ScrollArea Style



deepal_de
10th June 2011, 07:48
this is QListWidget Stylesheet,After applying the style the Scroll area shows in windows classic style
i need it to be in windows7 default style



QHeaderView::section {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.892, stop:0 rgba(212, 236, 255, 255), stop:1 rgba(225, 240, 255, 255));
border: 1px solid rgb(188,188,191);
}
QListWidget{
gridline-color: rgb(188, 188, 188);
background-color: rgb(255, 255, 255);
alternate-background-color: qlineargradient(spread:pad, x1:0, y1:0.482955, x2:1, y2:0.517, stop:0 rgba(243, 239, 255, 234), stop:1 rgba(243, 239, 255, 218));
}
/*QListWidget::item
{
margin: 4px;
}*/
QListWidget::item::hover{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(75, 154, 234, 64), stop:1 rgba(62, 118, 216, 171));;
border: 1px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 166, 252, 223), stop:1 rgba(62, 118, 216, 171));
}
QListWidget::item::selected{
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(229, 255, 189, 245), stop:1 rgba(229, 255, 189, 255));
selection-color:black;
}
QListWidget::item::sub-control
{
height: 23px;
}