I populate a QListView with QSqlTableModel.
projectModel = QSqlTableModel()
projectModel.setTable(\"project\")
projectModel.select()
projectView = Q
You can use the selectedIndexes() method of the model to get the indexes of the selected items using something like
idx = self.projectView.selectionModel().selectedRows()
then looping on idx, you can get the values you need with
for rec in idx:
entry = rec.row()
val = self.projectModel.record(entry).field(x).value()
with x beeing the number of the column you want to retrive
val is now a QVariant and you can further elaborate it.