Re: [Development] [Bug] QOpenGLWidget::grab() not behaving properly
On 2017-11-29 16:02, Jose Fernandez Navarro wrote: Hello, I have a QOpenGLWidget object where I draw using both OpenGL and QPainter. When I called grab() on the object prior 5.9.2 I would get a seg. fault. Now (5.9.2) I can grab the widget's image but the QPainter stuff is missing and actually it dissappears from the widget until I refresh it again by panning or zooming on it. Hi, Can you see if https://codereview.qt-project.org/#/c/197930/ helps ? Regards, -- Sérgio Martins | sergio.mart...@kdab.com | Senior Software Engineer Klarälvdalens Datakonsult AB, a KDAB Group company Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - The Qt, C++ and OpenGL Experts ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development
[Development] [Bug] QOpenGLWidget::grab() not behaving properly
Hello, I have a QOpenGLWidget object where I draw using both OpenGL and QPainter. When I called grab() on the object prior 5.9.2 I would get a seg. fault. Now (5.9.2) I can grab the widget's image but the QPainter stuff is missing and actually it dissappears from the widget until I refresh it again by panning or zooming on it. This is how I do the grabbing: const QPixmap res = grab(QRect(0,0,width(),height())); return res.toImage(); Is this a known bug? or is it actually a bug? I believe it should be possible to grab the image from the widget even if I draw on it with both OpenGL and QPainter. I figured I would post it here before creating an issue. ps: I am using OSX (latest version, Sierra). Thanks in advance. Best, Jose___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development