QString stylesheet
= QString("QLineEdit { font-size: %1pt; font-weight:bold; color: rgb(93,93,93); background-color: rgb(197,198,199); }").
arg(24);
// stylesheet.append(QString("QAbstractItemView {border:2px solid rgb(182,184,185); border-radius: 3px; padding-left:9px; padding-right:9px; selection-background-color: rgb(255, 174, 0);gridline-color:gray; color: rgb(93,93,93);}"));
stylesheet.
append(QString("QListView { show-decoration-selected: 1;} QListView::item:alternate { background: transparent;} QListView::item:selected:active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #cccccc, stop: 1 #555555);} QListView::item:selected:!active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #cccccc, stop: 1 #555555);}"));
stylesheet.
append(QString("QSlider::groove:horizontal {border-image: url(icons:guage_cursor_bg1.png);border-width: 1px; height: 31px;}QSlider::handle:horizontal {margin-top:0px; margin-bottom:-1px; image: url(icons:guage_cusor_n.png);}"));
stylesheet.
append(QString("QLabel {font-size: 24pt; font-weight:bold; color: rgb(136,137,138);}"));
stylesheet.
append(QString("QCheckBox {spacing: 15px; font-weight:bold; font-size: 24px; color: rgb(136,137,138);} QCheckBox::indicator {width:28px; height:28px;} QCheckBox::indicator:unchecked {image:url(icons:box_n.png);} QCheckBox::indicator:checked {image: url(icons:box_c.png);}"));
stylesheet.
append(QString("QRadioButton {spacing: 15px; font-weight:bold; font-size: 24px; color: rgb(136,137,138);} QRadioButton::indicator {width:35px; height:35px;} QRadioButton::indicator:unchecked {image:url(icons:radio_n.png);} QRadioButton::indicator:checked {image: url(icons:radio_s.png);}"));qApp
->setStyleSheet
(stylesheet
);
QString stylesheet = QString("QLineEdit { font-size: %1pt; font-weight:bold; color: rgb(93,93,93); background-color: rgb(197,198,199); }").arg(24);
// stylesheet.append(QString("QAbstractItemView {border:2px solid rgb(182,184,185); border-radius: 3px; padding-left:9px; padding-right:9px; selection-background-color: rgb(255, 174, 0);gridline-color:gray; color: rgb(93,93,93);}"));
stylesheet.append(QString("QListView { show-decoration-selected: 1;} QListView::item:alternate { background: transparent;} QListView::item:selected:active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #cccccc, stop: 1 #555555);} QListView::item:selected:!active{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #cccccc, stop: 1 #555555);}"));
stylesheet.append(QString("QSlider::groove:horizontal {border-image: url(icons:guage_cursor_bg1.png);border-width: 1px; height: 31px;}QSlider::handle:horizontal {margin-top:0px; margin-bottom:-1px; image: url(icons:guage_cusor_n.png);}"));
stylesheet.append(QString("QLabel {font-size: 24pt; font-weight:bold; color: rgb(136,137,138);}"));
stylesheet.append(QString("QCheckBox {spacing: 15px; font-weight:bold; font-size: 24px; color: rgb(136,137,138);} QCheckBox::indicator {width:28px; height:28px;} QCheckBox::indicator:unchecked {image:url(icons:box_n.png);} QCheckBox::indicator:checked {image: url(icons:box_c.png);}"));
stylesheet.append(QString("QRadioButton {spacing: 15px; font-weight:bold; font-size: 24px; color: rgb(136,137,138);} QRadioButton::indicator {width:35px; height:35px;} QRadioButton::indicator:unchecked {image:url(icons:radio_n.png);} QRadioButton::indicator:checked {image: url(icons:radio_s.png);}"));qApp->setStyleSheet(stylesheet);
To copy to clipboard, switch view to plain text mode
Bookmarks