forked from qt-creator/qt-creator
We were passing the image with premultiplied alpha obtained from QSGRhiLayer::toImage() to be shown in form editor. This corrupts the colors in with 3D materials having partially transparent colors. Converting the image to QImage::Format_ARGB32 format fixes the issue. Fixes: QDS-7474 Change-Id: Id0b689d7e2d9fc111e98f28b18db0af3ac30041f Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>