[Qt-interest] Tab order in custom widgets

Simon Schäfer SirTwist at web.de
Mon Mar 15 14:40:15 CET 2010


Hello everybody,
We are heavyly using custom widgets in our application, and figured out that 
the tab order is not working with them. 

For example if we assume that we have a custom widget with multiple lineedits 
(CLE1, CLE2) and put the custom widget between two normal lineedits (LE1 and 
LE2). Then we change the Tab stop order from LE1 -> Custom -> LE2, the result 
is that the tab jump is from LE1 to the widget of the custom widgets (not the 
first line edit within the custom widget) and than on the second Tab further 
to LE2 then on the third Tab it jumps into the to the first line edit in the 
custom widget.

An expected behavior would be:
LE1 jumps to CLE1 jumps to CLE2 jumps to LE2

Can someone tell me if I perhaps have forgotten something within my creation 
of the custom widget or if there is some other way to enable the expected 
behavior.

Best Regards
Simon



More information about the Qt-interest-old mailing list