PDA

View Full Version : how to change the "tab order"?



oscar721
21st July 2008, 02:47
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.

yxmaomao
21st July 2008, 02:57
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

jpn
21st July 2008, 11:31
I think he means "tab order" as in QWidget::setTabOrder(). :)