Qt 4.8 QSlider handle size
-
@hskoglund, I've been through the source again an yes there was an error in the CSS, which having corrected this what I'm seeing is still four handles, where the underlying handles are orientated incorrectly, the handles on-top of these are orientated as I would expected.
Moving the vertical slider increases the width of the horizontal slider.
Moving the horizontal slider increases the height of the vertical slider. -
Aha nice! So if they move together (both horizontally and vertically) that means your screen now looks similar to my screenshot 5 days ago?
Which means you can use this as a solution for displaying classical grooves and simultaneously having resizable QSlider handles on your Qt 4.8.4... -
@hskoglund , I know this is quite an old post now, I've been working on other stuff and now revisiting this, here are a few observations:
- With QSlider style set as follows:
QSlider::groove:vertical { background: transparent; } QSlider::handle:vertical { background: #eeeeee; border: 1px solid grey; width: 80px; height: 10px; } QSlider::groove:horizontal { background: transparent; } QSlider::handle:horizontal { background: #eeeeee; border: 1px solid grey; width: 10px; height: 80px; }
With the above both handles appear the correct size and orientation. No groove is obviously visible.
If I remove the content of the groove style just leaving:
QSlider::groove:vertical { } QSlider::handle:vertical { background: #eeeeee; border: 1px solid grey; width: 80px; height: 10px; } QSlider::groove:horizontal { } QSlider::handle:horizontal { background: #eeeeee; border: 1px solid grey; width: 10px; height: 80px; }
Whilst the groove and ticks are now visible the handle is the wrong way in both orientations.