Results 1 to 3 of 3

Thread: tab order in QTabWidget

  1. #1
    Join Date
    Jun 2011
    Posts
    56
    Thanks
    7
    Qt products
    Qt4

    Default tab order in QTabWidget

    How is this handled for QTabWidget s? How is the tab order within them set? I'd like to tab into widgets contained within a QTabWidget, not past them.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: tab order in QTabWidget

    I find the docs pretty handy...
    QTabWidget
    count
    current index
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jun 2011
    Posts
    56
    Thanks
    7
    Qt products
    Qt4

    Default Re: tab order in QTabWidget

    You misunderstood my question or you don't know. Tab order is the order in which widgets obtain focus, when the user presses the tab key on the keyboard. I create the static part on my dialog, then add contents to the tab bar (contents = QWidget). Hence these contents are created last and hence are last in the tab order. I'd like to change this.

    Here is the correct answer:

    http://doc.qt.io/qt-4.8/http://qt-project.org/doc/qt-4.8/qwidget.html#setTabOrder

Similar Threads

  1. Replies: 6
    Last Post: 21st August 2013, 12:53
  2. Toolbar order
    By wconstan in forum Newbie
    Replies: 1
    Last Post: 19th December 2009, 21:21
  3. set Tab Order in a QTableWidget
    By jfe in forum Qt Programming
    Replies: 1
    Last Post: 18th January 2008, 12:55
  4. about tab order
    By hesummar in forum Qt Programming
    Replies: 7
    Last Post: 16th November 2006, 05:45
  5. TAB order on form
    By igor_x in forum Newbie
    Replies: 3
    Last Post: 10th November 2006, 05:29

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.