QSqlTableModel setFilter() method re-selects from database
General and Desktop
3
Posts
2
Posters
1.1k
Views
1
Watching
-
I found this to work well for doing that: http://qt-project.org/doc/qt-5.0/qtcore/qsortfilterproxymodel.html
and this example is what I used to get it going: http://qt-project.org/doc/qt-5.0/qtwidgets/itemviews-customsortfiltermodel.html