42 #ifndef QSQLQUERYMODEL_H 43 #define QSQLQUERYMODEL_H 45 #include <QtCore/qabstractitemmodel.h> 46 #include <QtSql/qsqldatabase.h> 94 virtual void queryChange();
105 #endif // QSQLQUERYMODEL_H The QVariant class acts like a union for the most common Qt data types.
The QSqlError class provides SQL database error information.
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of columns for the children of the given parent.
#define QT_END_NAMESPACE
This macro expands to.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
The QSqlQuery class provides a means of executing and manipulating SQL statements.
static void clear(QVariant::Private *d)
The QSqlDatabase class represents a connection to a database.
The QSqlRecord class encapsulates a database record.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Returns the data for the given role and section in the header with the specified orientation.
The QSqlQueryModel class provides a read-only data model for SQL result sets.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Returns the data stored under the given role for the item referred to by the index.
virtual bool canFetchMore(const QModelIndex &parent) const
Returns true if there is more data available for parent; otherwise returns false. ...
virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole)
Sets the data for the given role and section in the header with the specified orientation to the valu...
virtual void fetchMore(const QModelIndex &parent)
Fetches any available data for the items with the parent specified by the parent index.
The QModelIndex class is used to locate data in a data model.
virtual bool insertColumns(int column, int count, const QModelIndex &parent=QModelIndex())
On models that support this, inserts count new columns into the model before the given column...
#define Q_DECLARE_PRIVATE(Class)
virtual bool removeColumns(int column, int count, const QModelIndex &parent=QModelIndex())
On models that support this, removes count columns starting with the given column under parent parent...
The QAbstractTableModel class provides an abstract model that can be subclassed to create table model...