Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76220

QOpenGLWidget: impossible to grab full QPainter.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.0
    • GUI: OpenGL
    • None
    • Windows

      Story

      I try to grab a custom QOpenGLWidget with OpenGL + QPainter rendering.
      I use the Qt Example qopenglwidget with new button to grab all views. See attached program.

      Result

      When I try to grad widget, just OpenGL part is shown (and recursive grab too for main view).
      See attached dump file (where FPS and bubbles are missing).

      Expected

      Full grab of widget (like printed on screen).

      Remark

      Moreover, my final aims is to grab parent widget using recursive call of grab(). So if solution is to call another method, my question is: it's recursive too ?

        1. qopenglwidget.zip
          19 kB
        2. grab_2.png
          grab_2.png
          2 kB
        3. grab_1.png
          grab_1.png
          3 kB
        4. grab_0.png
          grab_0.png
          27 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            rominitch Romain MOURARET
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes