xTuple.com xTupleU Blog & News Customer Support

Changing Tab Order existing screen

Hi,

I’ve added a new field to an existing screen to do an extra calculation. I used the layoutGridAddWidget function but I want this field to be earlier in the tab order. Is it possible to programatically set the tab order in a script?

TIA

Okay so I figured it out for my use case at least. After searching through the source code I found I could use

QWidget.setTabOrder(fromWidget,toWidget);

Hopefully this will help someone else at some point.