[Qt-jambi-interest] Help--The Stylesheet is really correct, but why I set the style sheet through QDesigner in eclipse, and it still doesn't work???

朱欢 hotaru5423 at gmail.com
Thu Aug 28 15:15:34 CEST 2008


QPushButton {

border-radius: 6px;

border: 2px solid #8f8f91;

background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0
#f6f7fa, stop: 1 #dadbde);

}

QPushButton:pressed {

background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0
#dadbde, stop: 1 #f6f7fa);

}

QTableView::item {

border: 1px solid #d9d9d9;

border-top-color: transparent;

border-bottom-color: transparent;}

QTableView::item:hover {

background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd,
stop: 1 #cbdaf1);

border: 1px solid #bfcde4;}

QTableView::item:selected {

border: 1px solid #567dbc;}

QTableView::item:selected:active{

background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1,
stop:1#567dbc);}

QTableView::item:selected:!active {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8,
stop: 1 #577fbf);}






Only the button style take effects, the style for QTableView::item doesn't
work.
You can see the picture for detailed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080828/2e359b55/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: style sheet pic.JPG
Type: image/jpeg
Size: 157581 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080828/2e359b55/attachment.jpe 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: running pic.jpg
Type: image/jpeg
Size: 50810 bytes
Desc: not available
Url : http://lists.qt.nokia.com/pipermail/qt-jambi-interest/attachments/20080828/2e359b55/attachment.jpg 


More information about the Qt-jambi-interest mailing list