pyqt5: Properly update QTreeView after data change on the database
问题 I have a model-based QTreeView which is fed by a QSortFilterProxyModel. I am displaying rows from the database here. With a double-click I am executing a modal QDialog to edit the data (the user can do CRUD operations like create new rows into my SQLite data base, updates, delete etc.). On closing the edit-dialog the focus gets back to the underlying QTreeView. Now I would like to refresh the changed data from the database. One way to do this would be to build up my complete model and refetch