For example we have a groupbox with some amount of lineEdits.
When user press Tab focus from one lineEdit changed to other.
How to make focus change in the specific
In a designer you should select Edit->Edit Tab Order (blue numbers will appear). Than you click on your widgets in the order you want them (numbers will change). After you are done, you should select Edit->Edit Widgets (or press F3).
If you are not using designer, use:
void QWidget::setTabOrder ( QWidget *first, QWidget *second );