#include <QtOpenGL/qgl.h> #ifndef QGL_H class QGLContext{ /* Some contents are skipped to improve readability */ #if defined(Q_WS_X11) protected: virtual void* tryVisual(class QGLFormat const & f, int bufDepth = 1); #endif /* ... */ }; #endif // QGL_H