#include <QtSql/qsqltablemodel.h> #ifndef QSQLTABLEMODEL_H class QSqlTableModel: public QSqlQueryModel{ /* Some contents are skipped to improve readability */ public: enum EditStrategy{ OnFieldChange = 0, OnRowChange = 1, OnManualSubmit = 2, }; /* ... */ }; #endif // QSQLTABLEMODEL_H