QbelcorT
19th March 2009, 01:13
hi, ok it seems Trolltech wants me to become a rocket scientist, I can't figure out why this stylesheet will not work. The only part of it working is show-decoration-selected: 1;
This is the example right out of the docs, I want to make it work before I put my style in. ( change font, and color).
I have QtEmbedded 4.4.1
Thanks for any tips.
ui->listWidget->setStyleSheet("QListView { show-decoration-selected: 1;}\
item:alternate { background: #EEEEEE;}\
item:selected:active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ADAFE5, stop: #8588B2);}\
item:selected:!active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #6a6ea9, stop: #888dd9);}");
This is the example right out of the docs, I want to make it work before I put my style in. ( change font, and color).
I have QtEmbedded 4.4.1
Thanks for any tips.
ui->listWidget->setStyleSheet("QListView { show-decoration-selected: 1;}\
item:alternate { background: #EEEEEE;}\
item:selected:active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ADAFE5, stop: #8588B2);}\
item:selected:!active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #6a6ea9, stop: #888dd9);}");