From Qt Documentation to,
void QWidget::setTabOrder ( QWidget * first, QWidget * second ) [static]
which states that after the <<strong> first widget in focus order it places the second widget .
So, for you, the first widget will be your Widget3 , and the second widget will be your Widget1 . (if I understood the question correctly)
In addition, there are examples of using this function in the link above. You can use it.
Hope this helps.
source share