[Development] QT5 and color management

Anders Torger torger at ludd.ltu.se
Mon Aug 29 14:20:55 CEST 2016


Thanks, I'll have a look in the code!

With GTK the problem was solvable on Linux & Windows using native ways 
to get the system display profile, and the same seems applicable to QT. 
However a showstopper on GTK on Mac OS X was that the underlaying layer 
(Quartz) was configured to only accept sRGB, and it would convert using 
the system's display profile automatically, so you could only get sRGB 
colors out regardless if you have a wide gamut screen or not.

Do you know if QImage puts raw pixels to the screen also on OS X (that 
is there's no Quartz color management layer involved making-it-all-
become-sRGB), or must I use OpenGL?

/Anders

On 08/29/2016 10:52:48 AM, Boudewijn Rempt wrote:
> On Mon, 29 Aug 2016, Anders Torger wrote:
> 
> > Now I'm working on a QT-based application, and it needs to be able
> to 
> > output high saturation colors to wide gamut displays with correct
> color 
> > management, on both Windows and Mac OS X (Linux is only a bonus in
> this 
> > project). So the question is simply how is this done with QT -- if 
> > possible at all.
> 
> Sure it's possible. We accidentally broke it because we didn't have
> test
> hardware, but Krita's been able to do that. We use opengl directly,
> but Qt5 has a 10 bit/channel QImage format, so that might work too.
> 
> > Anyone who knows? Maybe there's an open-source/example application
> out 
> > there that has already solved the problem which we could look at?
> 
> Well, krita's been a fully color managed Qt application since 2004.
> 
> > 
> > We're using QT5.7
> > 
> > /Anders
> > _______________________________________________
> > Development mailing list
> > Development at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/development
> > 
> 
> -- 
> Boudewijn Rempt | http://www.krita.org, http://www.valdyas.org
> 





More information about the Development mailing list