图示:
1 /*spinbox 抬起样式*/
2 QDateTimeEdit::up-button,QTimeEdit::up-button,QDoubleSpinBox::up-button,QSpinBox::up-button {subcontrol-origin:border;
3 subcontrol-position:right;
4 image: url(:/image/add.png);
5 60px;
6 height: 60px;
7 }
8 QDateTimeEdit::down-button,QTimeEdit::down-button,QDoubleSpinBox::down-button,QSpinBox::down-button {subcontrol-origin:border;
9 subcontrol-position:left;
10 image: url(:/image/reduce.png);
11 60px;
12 height: 60px;
13 }
14 /*按钮按下样式*/
15 QDateTimeEdit::up-button:pressed,QTimeEdit::up-button:pressed,QDoubleSpinBox::up-button:pressed,QSpinBox::up-button:pressed{subcontrol-origin:border;
16 subcontrol-position:right;
17 image: url(:/image/add_click.png);
18 60px;
19 height: 60px;
20 }
21
22 QDateTimeEdit::down-button:pressed,QTimeEdit::down-button:pressed,QDoubleSpinBox::down-button:pressed,QSpinBox::down-button:pressed{
23 subcontrol-position:left;
24 image: url(:/image/reduce_click.png);
25 60px;
26 height: 60px;}
27 }