QSqlQueryModel is a high-level interface for executing SQL statements and traversing the result set. It is built on top of the lower-level QSqlQuery and can be used to provide data to view classes such as QTableView.
Questions tagged [qsqlquerymodel]
32 questions
-1
votes
1 answer
QSqlQueryModel::clear() crash when using multiple QSqlQueryModel on different tables
In a PyQT5 project I use a QSqlQueryModel on a table 'A' to populate a ListView and a QSqlRelationalTableModel on same table mapped to some LineEdits. I also have a filter which calls QSqlQueryModel::clear(), QSqlQueryModel::setQuery(),…

Delcaran
- 19
- 1
- 3
-2
votes
1 answer
edit added data to sublcassed QSqlQueryModel?
i want to display in a QlistView the index and the file name, so i subclassed QSqlQueryModel to override the data() method but i'm always getting None, it seems like i'm displaying the data befor adding it or some thing like that here is the…

miyou995
- 77
- 10