#include <QtOpenGL/qgl.h> #ifndef QGL_H class QGLContext{ /* Some contents are skipped to improve readability */ public: QGLContext(class QGLFormat const & format, class QPaintDevice* device); /* ... */ }; #endif // QGL_H