#include <QtSql/qsqlrelationaltablemodel.h> #ifndef QSQLRELATIONALTABLEMODEL_H class QSqlRelationalTableModel: public QSqlTableModel{ /* Some contents are skipped to improve readability */ protected: virtual class QString selectStatement() const /* ... */ }; #endif // QSQLRELATIONALTABLEMODEL_H