Quantcast
Channel: Active questions tagged qpainter - Stack Overflow
Viewing all articles
Browse latest Browse all 58

QPainter fails when calling begin

$
0
0

I'm trying to paint a PNG file on a QsplashScreen.Im' trying to do it via QPainter. The reason I want to do it via QPainter is because I want it to minimize smoothly (until it disappear), When I'm just repaiting it it doesn't looks smooth at all.

I passed the QSplashScreen to the QPainter constructor. When I call begin() in the QPainter with th e QSplashScreen as parameter it fails on the assert d->active. It happens in the same way when I supply Qpixmap.

What am I doing wrong? How should I initiate the QPainter's begin()?


Viewing all articles
Browse latest Browse all 58

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>