#include <QtOpenGL/qgl.h>
#ifndef QGL_H
class QGLWidget: public QWidget{
   /* Some contents are skipped to improve readability */
   protected: virtual void resizeGL(int w, int h);
   /* ... */
};
#endif // QGL_H