Widget.setFocus

sets focus to this widget or suitable focusable child, returns previously focused widget

Meta