#include <QtOpenGL/qgl.h> #ifndef QGL_H class QGLContext{ /* Some contents are skipped to improve readability */ protected: virtual bool chooseContext(class QGLContext const * shareContext = 0); /* ... */ }; #endif // QGL_H