#include <QtSql/qsqlerror.h> #ifndef QSQLERROR_H class QSqlError{ /* Some contents are skipped to improve readability */ public: enum ErrorType{ /* ... */ StatementError = 2, /* ... */ }; /* ... */ }; #endif // QSQLERROR_H