7#include "../sqldatabase/sqldatabase.cpp"
bool isValid() const
Returns true if an error is set, otherwise false.
The QSqlQueryModel class provides a read-only data model for SQL result sets.
bool canFetchMore(const QModelIndex &parent=QModelIndex()) const override
void setQuery(QSqlQuery &&query)
Resets the model and sets the data provider to be the given query.
void fetchMore(const QModelIndex &parent=QModelIndex()) override
QSqlError lastError() const
Returns information about the last error that occurred on the database.
QSqlQueryModel * model
[16]