#include <QtOpenGL/qglpixelbuffer.h> #ifndef QGLPIXELBUFFER_H class QGLPixelBuffer: public QPaintDevice{ /* Some contents are skipped to improve readability */ public: class QGLFormat format() const /* ... */ }; #endif // QGLPIXELBUFFER_H