Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.6.1
-
None
-
Mac OSX 10.11.6, latest xcode, Qt5.6.1 release
Description
The QImage produced by QOpenGLWidget::grabFramebuffer is much darker than what appears onscreen (see attached images) – seems like some kind of gamma correction factor is missing? It would be much more useful if the resulting image reflects what is seen onscreen – perhaps as an option?
Relatedly, when I recently switched from using the QGLWidget to the QOpenGLWidget, it seems that this gamma factor got introduced, as the same underlying opengl rendering code now produces a much brighter image. I have searched extensively for any info about this but can't seem to find anything – perhaps some underlying OpenGL flag somewhere set globally on the entire window that automatically applies a gamma transform?
Attachments
For Gerrit Dashboard: QTBUG-55245 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
168873,2 | Don't ignore alpha values in grabFramebuffer methods | 5.11 | qt/qtbase | Status: ABANDONED | -2 | 0 |
235928,2 | Don't ignore alpha values in grabFramebuffer methods | dev | qt/qtbase | Status: MERGED | +2 | 0 |