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

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -