diff options
Diffstat (limited to 'examples/opengl/overlay_x11/overlay_x11.doc')
-rw-r--r-- | examples/opengl/overlay_x11/overlay_x11.doc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/opengl/overlay_x11/overlay_x11.doc b/examples/opengl/overlay_x11/overlay_x11.doc index 6dddc9b9b..3a6eff039 100644 --- a/examples/opengl/overlay_x11/overlay_x11.doc +++ b/examples/opengl/overlay_x11/overlay_x11.doc @@ -3,14 +3,14 @@ \ingroup opengl-examples \title OpenGL Overlay X11 Example -\warning From version 5.0 onwards, the Qt OpenGL Extension includes +\warning From version 5.0 onwards, the TQt OpenGL Extension includes direct support for use of OpenGL overlays. For many uses of overlays, this makes the technique described below redundant. See the \link opengl-overlay-example.html overlay\endlink example program. The following is a discussion on how to use non-QGL widgets in overlay planes. -Overlayrubber: An example program showing how to use Qt and Qt OpenGL +Overlayrubber: An example program showing how to use TQt and TQt OpenGL Extension with X11 overlay visuals. See \c{$QTDIR/examples/opengl/overlay_x11} for the source code. @@ -27,7 +27,7 @@ redraws (renders) itself. Thus, you can easily confirm that drawing in the overlay plane does not cause redrawings in the main plane where the QGLWidget resides. -\i \e RubberbandWidget - Very simple standard (non-GL) Qt widget that +\i \e RubberbandWidget - Very simple standard (non-GL) TQt widget that implements rubberband drawing. Designed for use in an overlay plane. It takes the plane's transparent color as a constructor argument and uses that for its background color. Thus, the widget itself will be @@ -55,7 +55,7 @@ some hints for real application usage: \list \i \e{All normal widgets are in the overlay plane.} This means that you -can put all kinds of Qt widgets (your own or standard Qt widgets) on +can put all kinds of TQt widgets (your own or standard TQt widgets) on top of the OpenGL image (widget), e.g. pushbuttons etc., and they can be moved, resized, or removed without destroying the OpenGL image. @@ -72,7 +72,7 @@ two widgets' geometries synchronized. \i \e{Using together with QPalette and QColorGroup.} Instead of the simplistic setBackgroundColor( transparentColor ), you can use Qt's QPalette system to make your overlay widgets use -transparent color for what you want. This way, the normal Qt widgets +transparent color for what you want. This way, the normal TQt widgets can be used as overlays for fancy effects. Just create a palette for them with the transparent color for the relevant color roles, e.g. Background and Base, in the Normal and/or Active modes. This way, you |