c++ - Qt 5.0 QScreen solidfill function -


i have fill screen solid color. looks in qt 4.8 version supported using following function.

void qscreen::solidfill ( const qcolor & color, const qregion & region )   [virtual] 

now in qt5 see function deprecated in qscreen class. tried this:

qscreen *screen = qguiapplication::primaryscreen(); qpixmap qpix = screen->grabwindow(0, 0, 0, desktop()->width(),                   desktop()->height()); qpix.fill(qt::black); 

i tried using qsplashscreen , works. looks overlay screen drawing on screen.

is there straight replacement this? perhaps close blit?

thanks in advance.


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -