PDA

View Full Version : tab order in QTabWidget



ugluk
23rd July 2012, 09:44
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.

amleto
23rd July 2012, 11:15
I find the docs pretty handy...
QTabWidget

count
current index

ugluk
23rd July 2012, 14:25
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://qt-project.org/doc/qt-4.8/qwidget.html#setTabOrder