I'm still a beginner and I can't figure this out from the documentations on my own :(
I am using QSqlTableModel to access a table called "project". projectModel = QSqlTableModel() projectModel.setTable("project") projectModel.select() In projectModel, column(0) are the ID, column(1) are the names. QListView is set to show column 1 projectView.setModelColumn(1) Now when I click an item, I want to retrieve the ID on column(0) of the selected item. Can anyone point me to some example how I can do this, please? Any help appreciate, thanks.
_______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt