schickere slider in QT (PYQT)

#6143353
Lesenswert?

Du kannst dir 
https://doc.qt.io/Qt-5/stylesheet-examples.html#customizing-qslider als 
Beispiel anschauen.
Ich habe mal bei einem Slider ein Bild als Handle verwendet:
1
QSlider::handle:horizontal {
2
    image: url(icons:test.png);
3
    width: 64px;
4
    margin: -20px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
5
}
6

7
QSlider::handle:vertical {
8
    image: url(icons:test.png);
9
    height: 64px;
10
    margin: 0 -20px; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
11
}

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren