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?
Okay so I figured it out for my use case at least. After searching through the source code I found I could useQWidget.setTabOrder(fromWidget,toWidget);
Hopefully this will help someone else at some point.