Results 1 to 3 of 3

Thread: how to change the "tab order"?

  1. #1

    Default how to change the "tab order"?

    Hi all,

    I want to reorder the "tab order" of my QMainWind's child widgets( like the widgets in all the dock widgets ).

    One problem is that i don't know how to find all the children in the tab chain,

    the other is that the tab order doesnt recycle.

    Anybody tell me how to solve this2?

    Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    58
    Thanks
    2

    Default Re: how to change the "tab order"?

    for example:
    QTabWidget myTabWidget
    for ( int i = 0 ; i < myTabWidget.count() ; i++ )
    {
    QWidget * yourWidget = myTabWidget.widget(i);
    // do what you want to do here
    }
    // then you can call insertTab() to reorder them

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to change the "tab order"?

    I think he means "tab order" as in QWidget::setTabOrder().
    J-P Nurmi

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.