Results 1 to 3 of 3

Thread: scroll to first tab in QTabWidget

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default scroll to first tab in QTabWidget

    Hello,
    I want to scroll to the first tab in QTabWidget directly without use of scrollButtons!
    How can I do this?
    Thank you!
    Lucie

  2. #2
    Join Date
    Jun 2012
    Posts
    173
    Thanks
    48
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: scroll to first tab in QTabWidget

    TabWidget->setCurrentIndex(0)

  3. #3
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: scroll to first tab in QTabWidget

    When the first tab is already selected, the tab bar doesn't return/scroll to the first tab!

Similar Threads

  1. How to decorate QTabWidget scroll buttons?
    By terrrible in forum Newbie
    Replies: 2
    Last Post: 7th June 2012, 09:58
  2. Scroll bar in QTabWidget
    By vinithr in forum Newbie
    Replies: 3
    Last Post: 28th May 2012, 17:16
  3. Scroll Buttons in page Area for QTAbwidget
    By vaibhav in forum Qt Programming
    Replies: 3
    Last Post: 26th August 2011, 14:59
  4. scroll bars in QTabWidget--i don't want them
    By jhowland in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2010, 08:12
  5. scroll bar on a QTabWidget?
    By barbR in forum Newbie
    Replies: 1
    Last Post: 19th January 2007, 19:14

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.