Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setStyleSheet on second handle and groove #56

Closed
Gaalee opened this issue Jan 11, 2022 · 2 comments
Closed

How to setStyleSheet on second handle and groove #56

Gaalee opened this issue Jan 11, 2022 · 2 comments

Comments

@Gaalee
Copy link

Gaalee commented Jan 11, 2022

Hi, i'm trying to use your QLabeledRangeSlider with PySide6 but setStyleSheet doesn't work for most of the things you can edit from QSlider class.

I tried to do

self.range_slider = QLabeledRangeSlider(Qt.Horizontal)
QSS = """
   QSlider::groove:horizontal {
       border: 1px solid #999999;
       height: 8px; 
       background-color: green;
       margin: 2px 0;
   }
    QSlider::handle {
        background-color: red;
        height: 20px;
        width: 20px;
        border-radius: 10px;
   }
self.range_slider.setStyleSheet(QSS)
"""

But the only thing working is the handle being red. How can i style the second handle and the groove using the QLabeledRangeSilder widget ? Thanks.

@Gaalee
Copy link
Author

Gaalee commented Jan 11, 2022

Never mind its the same problem explain here #35 It work without any background-color on the frame.

@tlambert03
Copy link
Member

thanks for the comment! will close in favor of that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants