Results 1 to 4 of 4

Thread: QScrollBar invertedAppearance

  1. #1
    Join Date
    May 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default QScrollBar invertedAppearance

    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?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QScrollBar invertedAppearance

    Quote Originally Posted by qnik View Post
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Aug 2009
    Location
    Brisbane, Australia
    Posts
    75
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QScrollBar invertedAppearance

    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?
    Last edited by grantbj74; 1st August 2012 at 06:13.

  4. #4
    Join Date
    Aug 2009
    Location
    Brisbane, Australia
    Posts
    75
    Thanks
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QScrollBar invertedAppearance

    My solution is put in a QSlider. No buttons = no worries. Doesn't need to be inverted either.

Similar Threads

  1. customizing QScrollbar
    By MarkoSan in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 18:51
  2. QGraphicsView and QScrollBar
    By paolom in forum Qt Programming
    Replies: 3
    Last Post: 2nd October 2009, 08:19
  3. qscrollbar styling
    By 20khz in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2008, 14:17
  4. QScrollbar stylesheet
    By GuS in forum Qt Programming
    Replies: 34
    Last Post: 4th December 2007, 16:12
  5. Customizing QScrollBar
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2006, 18:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.