How to insert new data rows to QSqlQueryModel?
General and Desktop
2
Posts
2
Posters
5.1k
Views
1
Watching
-
"QSqlQueryModel":http://doc.qt.nokia.com/latest/qsqlquerymodel.html#details
bq. The QSqlQueryModel class provides a read-only data model for SQL result sets.
However, you can
- use a QSqlTableModel instead or
- insert the data to the database first or
- create your own QAbstractItemModel which incorporates a QSqlQueryModel and allows for adding rows