#include <QtSql/qsqldatabase.h> #ifndef QSQLDATABASE_H class QSqlDatabase{ /* Some contents are skipped to improve readability */ public: struct QSqlError lastError() const /* ... */ }; #endif // QSQLDATABASE_H