c++ - Qt display settings set to grayscale -


how can change display settings of qt application whole application presented in grayscale, 1 byte per pixel?

i know how using grab, convert color frame grayscale , paint on paintevent, not need. i'm looking way setup whole screen grayscale without need convert it.

the news qt supports rendering grayscale software rasterizer, obvious looking @ qpaintengine_raster_p.h , qpaintengine_raster.cpp,

the bad news have implement own platform plugin, start plugin using , override use grayscale qimage pixel storage, won't work qpixmap:

case qinternal::pixmap:     qwarning("qrasterpaintengine: unsupported pixmaps..."); 

once platform plugin passes grayscale qimage down chain, should picked , configure rasterizer it.

more bad news:

there no detailed tutorial documentation writing qpa plugins @ time. however, there 2 example plugins shipped qt5:

qtbase/src/plugins/platforms/minimal/ qtbase/src/plugins/platforms/minimalegl/ 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -