QSlider QSS设置样式

volumeSlider->setStyleSheet("QSlider{background-image: url(:images/volumeslider.png);}"
                                "QSlider::groove:vertical{image: url(:images/volumeslider.png);}"
                                "QSlider::handle:vertical{image: url(:images/volumeknob_normal.png);}"
                                "QSlider::handle:verical:hover{image: url(:images/volumeknob_hover.png);}"
                                "QSlider::handle:vertical:pressed{image: url(:images/volumeknob_pressed.png);}");

你可能感兴趣的:(QSlider QSS设置样式)