Hi,

I'm not being able to read the selected item from a QTreeView when it's being sorted by a QSortFilterProxyModel. All the references from currentIndex(), currentIndex().row(), selectionModel()->currentIndex() or whatever are always returning the row number in QTreeview, but I cannot find the correct record in the original model using the row number as the sorting process seems to be not affecting the sequence of data in the model. I'm using the QSqlQueryModel.

Am I doing something wrong here? I would appreciate any suggestion....

Thank-you,
Renato A. Ferreira