Details
-
Task
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
None
-
None
Description
The following modification of the grabber example will produce a black area in the place of the OpenGL widget on Windows XP.
@@ -102,8 +102,8 @@ void MainWindow::renderIntoPixmap() void MainWindow::grabFrameBuffer() { - QImage image = glWidget->grabFrameBuffer(); - setPixmap(QPixmap::fromImage(image)); + QPixmap pixmap = QPixmap::grabWidget(this); + setPixmap(pixmap); } void MainWindow::clearPixmap()
The OpenGL widget is grabbed correctly on Windows 7 and Linux.
Attachments
Issue Links
- relates to
-
QTBUG-2332 QPixmap::grabWindow fails to grab QGLWidget
-
- Closed
-