summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/opengl/doc/src/opengl.qdoc
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-30 07:38:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-03-30 10:31:09 +0200
commit1fb1936afb00a408799c3f8a4755da21450289b8 (patch)
tree4ae568cf34eb450da25da39f0379e92337b95740 /examples/activeqt/opengl/doc/src/opengl.qdoc
parent52c02908abecbb9fd4afcb0de6a0b50b3ae85827 (diff)
OpenGL example: Port to QOpenGLWidget
Change-Id: I81b1b2b251a3ffca2f925d5d61f88ac71728ca2b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/activeqt/opengl/doc/src/opengl.qdoc')
-rw-r--r--examples/activeqt/opengl/doc/src/opengl.qdoc4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/activeqt/opengl/doc/src/opengl.qdoc b/examples/activeqt/opengl/doc/src/opengl.qdoc
index 5a4f8a3..000d864 100644
--- a/examples/activeqt/opengl/doc/src/opengl.qdoc
+++ b/examples/activeqt/opengl/doc/src/opengl.qdoc
@@ -82,14 +82,12 @@
\snippet activeqt/opengl/main.cpp 2
\snippet activeqt/opengl/main.cpp 3
- The \c GLBox class inherits from both the \l QGLWidget class to be able
+ The \c GLBox class inherits from both the \l QOpenGLWidget class to be able
to render OpenGL, and from \l QAxBindable.
\snippet activeqt/opengl/glbox.h 0
The class reimplements the \l QAxBindable::createAggregate() function from QAxBindable
to return the pointer to a \l QAxAggregated object.
\snippet activeqt/opengl/glbox.h 1
- The rest of the class declaration and the implementation of the OpenGL
- rendering is identical to the original "box" example.
The implementation file of the \c GLBox class includes the \c objsafe.h
system header, in which the \c IObjectSafety COM interface is defined.