diff --git a/examples/opengl/hellogl_es2/bubble.h b/examples/opengl/hellogl_es2/bubble.h index cd4c8d91cc4..b913d3620d3 100644 --- a/examples/opengl/hellogl_es2/bubble.h +++ b/examples/opengl/hellogl_es2/bubble.h @@ -47,7 +47,7 @@ #include #include -class QPainter; +QT_FORWARD_DECLARE_CLASS(QPainter) class Bubble { diff --git a/examples/opengl/hellogl_es2/mainwindow.h b/examples/opengl/hellogl_es2/mainwindow.h index 7e16a6b6a7b..4aac2206925 100644 --- a/examples/opengl/hellogl_es2/mainwindow.h +++ b/examples/opengl/hellogl_es2/mainwindow.h @@ -43,9 +43,6 @@ #include -class QSlider; -class GLWidget; - class MainWindow : public QMainWindow { Q_OBJECT diff --git a/examples/opengl/textures/glwidget.h b/examples/opengl/textures/glwidget.h index 11a9818e19f..757a7df627a 100644 --- a/examples/opengl/textures/glwidget.h +++ b/examples/opengl/textures/glwidget.h @@ -44,7 +44,7 @@ #include #include -class QGLShaderProgram; +QT_FORWARD_DECLARE_CLASS(QGLShaderProgram); class GLWidget : public QGLWidget {