ListWidget.getSelection

Gets the index of the selected item. In case of multi select, the index of the first selected item is returned. Returns -1 if nothing is selected.

class ListWidget
int
getSelection
()

Meta