I am using a QListWidget and would like to programatically select one or more row entries in this widget. In reading the Qt 4.2.2 documentation it appears I must call...
Qt Code:
  1. addLst->selectionModel()->select( index, QItemSelectionModel::Select );
To copy to clipboard, switch view to plain text mode 
...where index is either a QModelIndex or QItemSelection object.

While I know what the row index is that I want to select, I don't know how to translate that into either QModelIndex or QItemSelection objects. There is a conceptual void here for me.

  1. Am I attempting to select in the correct manner?
  2. How do I translate my row index into the correct Qt object?

Thanks