Results 1 to 2 of 2

Thread: ScrollZoomer vertical scroll direction

  1. #1
    Join Date
    May 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default ScrollZoomer vertical scroll direction

    The vertical scroll direction in the Realtime example works opposite to what most users expect. The logic for inverted axis work however. I found if I changed ScrollBar::isInverted() to:

    Qt Code:
    1. bool ScrollBar::isInverted() const
    2. {
    3. if (orientation() == Qt::Vertical)
    4. return !d_inverted;
    5. else
    6. return d_inverted;
    7. }
    To copy to clipboard, switch view to plain text mode 

    it works as expected

  2. #2
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Windows

    Default Re: ScrollZoomer vertical scroll direction

    Thanks! This solves my problem too.

Similar Threads

  1. Vertical QProgressBar Text Direction
    By Pyral in forum Newbie
    Replies: 7
    Last Post: 22nd January 2016, 21:36
  2. MAC ONLY- Vertical Scroll problem with QTableWidget
    By user_mail07 in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2013, 11:42
  3. How to disable vertical scroll bar in QTableWidget
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 12:07
  4. vertical scroll bar in Qt box.
    By rajveer in forum Qt Programming
    Replies: 1
    Last Post: 22nd October 2008, 08:41
  5. Vertical Scroll Bar - Style Sheet
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2007, 20:03

Tags for this Thread

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.