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

QOpenGLWidget: impossible to grab full QPainter.

    XMLWordPrintable

Details

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

    Description

      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 ?

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes