#include <QtOpenGL/qgl.h> #ifndef QGL_H class QGLWidget: public QWidget{ /* Some contents are skipped to improve readability */ public: class QPixmap renderPixmap(int w = 0, int h = 0, bool useContext = 0); /* ... */ }; #endif // QGL_H