someWidget.setFocused(true) set the current focus to this widget. someWidget.setFocused(false) remove the current focus and leave it blank.
Normally you didn't need to set this directly.
Get current value.
QxWidget.getFocused();
Set new value.
QxWidget.setFocused(newValue);