SelectionModel.selectItem

bool selectItem(uint position, bool unselectRest)

Requests to select an item in the model.

Parameters

positionthe position of the item to select
unselectRestwhether previously selected items should be unselected

Returns

true if this action was supported and no fallback should be

tried. This does not mean the item was selected.