PDA

View Full Version : TabOrder problem



mchara
29th October 2007, 11:38
Hi,

my application have editors delivered from plugins, and one editor may contain other editors.
They are connected dynamically, but each editor, when created(in random order), is added to the end of app's tabOrder chain.

This makes tab order works in a appropriate way in a single editor, but jumps randomly via whole application when tabbing from last widget in editor.

Have u any ideas how to fix that?

jacek
31st October 2007, 21:32
You can use QWidget::setTabOrder() to fix it, but you need to know the order of widgets. You can ask layouts for it or after you show the form, create a list of editors sorted by widgets' coordinates.

mchara
1st November 2007, 17:24
yeah, right...
the only problem is that set tab order can set only single path of tab order chain & it have to be done for all widgets, because setting tab order of 2 widgets breas order from second widget forwards...

In addition my app my have several ways of tab order because editors changes depending on contents of scene...

this approach isn't good enought in this case, so any other ideas?