Widget.hasDefault

bool hasDefault()

Determines whether widget is the current default widget within its toplevel.

Returns

true if widget is the current default widget

within its toplevel, false otherwise