QPainter::begin: Paint device returned engine == 0, type: 3
The error means that the image you're trying to paint is a null image. Use isNull
on cou
to check this.
The cause of image being null may be the wrong height
and largeur
params when the image is constructed, or you're out of memory