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.
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
Post a Comment