Results 1 to 14 of 14

Thread: How can I always keep the scroll bar at the bottom of a QScrollArea?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can I always keep the scroll bar at the bottom of a QScrollArea?

    Try connecting rangeChanged() from the scroll bar to a a slot:
    Qt Code:
    1. void sliderRangeChanged(int min, int max) {
    2. Q_UNUSED(min);
    3. QScrollBar *bar = scroll->verticalScrollBar();
    4. bar->setValue(max);
    5. }
    To copy to clipboard, switch view to plain text mode 

  2. The following 2 users say thank you to ChrisW67 for this useful post:

    norobro (31st July 2010), Plixil (31st July 2010)

Similar Threads

  1. QScrollArea and scroll
    By uKCuH in forum Newbie
    Replies: 1
    Last Post: 1st July 2010, 12:22
  2. Scroll Bar not appearing in QScrollArea
    By coolkaps in forum Newbie
    Replies: 1
    Last Post: 2nd May 2010, 16:12
  3. Force a Scroll in a QScrollArea
    By nmuntz in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2009, 13:49
  4. Auto scroll down in QScrollArea
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 29th December 2008, 12:51
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 13:27

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
  •  
Qt is a trademark of The Qt Company.