I am appending a row in PyQt like so:
model = QStandardItemModel(0, 3)
model.appendRow([item1, item2, item2])
Now I would like to get the QModelIndex of the appended row so that I can select the row in the user interface using QItemSelectionModel.select(). How can this be done?
Not quite the universal answer, but in my specific case this was enough: