Solved Search in QTableView
-
Hi! Creating a database in QTableView and want to implement data search in it. How do I implement this? Maybe you have already finished the implementation of the code?
-
Hi,
Depends exactly on what you want to search. Are you looking in the data you loaded or at the database level ?
-
@SGaist I load the database automatically after running the app in QTableView. I have a row field (LineEdit) where I want to enter data, and then a search was performed in TableView, for example, deleting rows not by a search condition
-
What model are you using ?
-
@SGaist QSqlTableModel
-
SQL level: QSqlTableModel::setFilter.
Otherwise QSortFilterProxyModel.