QPainter::begin: Paint device returned engine == 0, type: 2
-
I have tried it here (Gentoo Linux, Qt 4.7.2, raster paint engine) and I get no warnings at all from your example.
What version of Qt are you using? Did you build it yourself or is it a pre-compiled binary distribution of Qt? What paint engine are you using?
-
I am running under Windows 7/64 bit with QtCreator 2.1.
I am using the pre-compiled binary distribution from Qt.Paint engine? I don't know what you mean... I haven't done anything to explicitly use a particular engine.
-
I'm sorry I missed to specify it... 4.7.2
-
Hi,
on windows using MSVS 2008 and pre build binaries, on Win7 32 bit, I can't reproduce this behavior.
But if you look at the Qt code it is printed out, when@
bool QPainter::begin(QPaintDevice *pd)
{
....d->engine = pd->paintEngine(); if (!d->engine) { qWarning("QPainter::begin: Paint device returned engine == 0, type: %d", pd->devType()); return false; } ....
@
It could perhaps be a 64 bit issue.
-
But my app isn't a 64 bit app...
Thankfully whatever it misses to paint is not visible, but it's still strange... -
So I guess this needs to be verified by someone running Win7/64 bit, to see if it can be reproduced...
-
can anyone running Win7/64 bit, please run the above code to see if it can be reproduce?
-
Just tried this with W7/64 on Qt 4.8.3 MinGW distribution, no messages or warnings running this code. Also tried 4.7.4 MinGW distribution, no warnings there. It shows the items properly, the checkboxes and list also behave properly.