Widget.setFocus

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

class Widget
protected public
setFocus

Meta