QSG - Using sRGB ICC profile instead of system ICC profile?
-
Our app uses Rhi/Dx11 QSGImageNode to render images on screen. We're on 6.4.1.
We are converting a QImage with assigned sRGB profile to the native texture with
window()->createTextureFromImage(image, QQuickWindow::TextureCanUseAtlas);
We also set the default surface format to use sRGB color space before initializing the rendering backend, which resolved our issue on the Mac.
On Windows however, Rhi (no matter which API) seems to be injecting current Display system ICC profile into the mix, which causes a difference between our viewport and what we can see for example by opening the same image in Windows Photos. When we switch Display ICC profile in the Windows Color Management to sRBG, the difference immediately disappears, but this is not a solution for us.
I can also replicate the same effect when I change the working space in Photoshop from sRGB to Display ICC profile, so it would suggest that this is also what's happening in our Qt app.
Is there a way to force the app to use sRGB profile instead of system Display profile for overall display?