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

QPixmap::grabWindow fails to grab QGLWidget

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.4.0
    • GUI: OpenGL
    • None

      When grabbing a GLWidget using QPixmap::grabWindow() with glWidget::winId() it fails to grab , though if we use QPixmap::grabWidget() with glWidget it does.

      // This does not work
      QPixmap::grabWindow(glWidget->winId()).save( "glwidget.png", "PNG" ); //This does work
      QPixmap::grabWidget(glWidget).save( "glwidget2.png", "PNG" );

      This behavior is found on Window vista.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            rodal Samuel Rødal
            smk smk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes