前言
QSlider展示大概有两种,第一种是handle在那个滑动槽内,第二种是handle大于滑动槽
第一种:handle在槽内
参考官方的例子,handle的高度是随着滑动槽的高度变化的
QSlider::groove:horizontal {
border: 1px solid #999999;
height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:<