PDA

View Full Version : QScrollBar invertedAppearance



qnik
3rd May 2011, 12:22
Hallo everybody

What good for is QScrollBar::setInvertedAppearance( true), if the behavior for mouse clicks isn't inverted too?

See the Qt Sliders sample:

If “Inverted appearance” is checked, nothing happens when clicking into the page control. Isn’t this paradox?
Moving the slider by mouse works as expected, but clicking the page control or push buttons it doesn’t.

Is there a work around?

wysota
4th May 2011, 01:50
If “Inverted appearance” is checked, nothing happens when clicking into the page control. Isn’t this paradox?
No. Try moving the slider with a mouse so that the groove is somewhere in the middle of the range and then click the page control.

grantbj74
1st August 2012, 06:59
I've got the same problem with QScrollBar.

Setting invertedAppearance to true makes it look better.

But slider top and bottom buttons are still inverted, setting invertedControls to true didn't seem to do anything.

Any ideas?

grantbj74
2nd August 2012, 05:08
My solution is put in a QSlider. No buttons = no worries. Doesn't need to be inverted either.