Widget.setCanFocus

Specifies whether widget can own the input focus. See Widget.grabFocus for actually setting the input focus on a widget.

class Widget
void
setCanFocus
()

Parameters

canFocus bool

whether or not widget can own the input focus.

Meta

Since

2.18