From 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jul 2024 20:15:52 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 2) Signed-off-by: Michele Calgaro --- doc/html/opengl-overlay-x11-example.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/opengl-overlay-x11-example.html') diff --git a/doc/html/opengl-overlay-x11-example.html b/doc/html/opengl-overlay-x11-example.html index c49535ad5..e161bfefd 100644 --- a/doc/html/opengl-overlay-x11-example.html +++ b/doc/html/opengl-overlay-x11-example.html @@ -45,7 +45,7 @@ Extension with X11 overlay visuals. information on overlays.

The example program has three main parts:

    -
  1. GearWidget - a normal, simple TQGLWidget. This renders the usual +
  2. GearWidget - a normal, simple TQGLWidget. This renders the usual gears. It has been modified to print a debug message every time it redraws (renders) itself. Thus, you can easily confirm that drawing in the overlay plane does not cause redrawings in the main plane where @@ -63,7 +63,7 @@ color of that plane.

    Running the Example

    Start the overlayrubber executable. Click and drag with the left -mouse button to see rubberband drawing. Observe that the TQGLWidget +mouse button to see rubberband drawing. Observe that the TQGLWidget does not redraw itself (no redraw debug messages are output), and yet the image is not destroyed. Marvel at the coolness of X11 overlays!

    Using this technique in a real application @@ -79,12 +79,12 @@ be moved, resized, or removed without destroying the OpenGL image. putting one widget (the overlay) on top of another (the OpenGL widget); that would defy the whole purpose of the automatic layout. The solution is to add just one of them to the TQLayout object. Have it -keep a pointer to the other (i.e. the TQGLWidget knows about its +keep a pointer to the other (i.e. the TQGLWidget knows about its overlay widget or vice versa). Implement the resizeEvent() method of the widget you put in the layout, and make it call setGeometry() on the other widget with its own geometry as parameters, thus keeping the two widgets' geometries synchronized. -

  3. Using together with TQPalette and TQColorGroup. Instead of the +

  4. Using together with TQPalette and TQColorGroup. Instead of the simplistic setBackgroundColor( transparentColor ), you can use TQt's TQPalette system to make your overlay widgets use transparent color for what you want. This way, the normal TQt widgets -- cgit v1.2.3