Choice.selectedIndex

int selectedIndex() const

Gets the currently selected item index.

Returns

Selected index, or -1 if none
void selectedIndex(int index)

Sets the currently selected item by index.

Parameters

indexIndex to select