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