Well, my approach would be to set the tab order in designer, to each of the input elements.

I.e. if "ui->widget" is not an input widget, it would not be in the tab order chain, only the actual input widgets inside it would be.

Cheers,
_