#include <QtSql/qsqltablemodel.h> #ifndef QSQLTABLEMODEL_H class QSqlTableModel: public QSqlQueryModel{ /* Some contents are skipped to improve readability */ public: virtual void setTable(class QString const & tableName); /* ... */ }; #endif // QSQLTABLEMODEL_H