QImage image.save is different from the QPainter.drawImage(image)
I have a image that generate from QOpenGLFramebufferObject::toImage()
And the image that I saved to hard driver
static int count = 0;
is different from the image the I use QPainter paint to the screen.
So what's happening?
The image that saved to hard driver:
The Image the was drawn to screen:
How do you setup the painter ? Are you doing the any customization of the painter ?
None, I have none customize.
this is a simple pure QWidget.
But I found the solution,
The QImage have invalid Alpha channels, I clean them up.
And it's works now.
Glad you found out and thanks for sharing !
Since you have it working now, please mark the thread a solved using the "Topic Tools" button so that other forum users may know a solution has been found :)