我想制作像滑块一样的材料。按下时滑块手柄应该变大,但是当我点击它时,它会使它成为:
top: not clicked, bottom: klicked
移动手柄后,它变大了。
我正在使用样式表:
...
QSlider::handle:horizontal {
background: #009ceb;
width: 24px;
margin: -12px 0;
border-radius: 12px;
border-style: solid;
border-width: 1px;
border-color: #009ceb;
}
QSlider::handle:horizontal:pressed{
background: #009ceb;
width: 36px;
margin: -18px 0;
border-style: solid;
border-radius: 18px;
border-width: 1px;
}
...