PDA

View Full Version : QPainter strange warning



mchara
15th October 2007, 08:37
Hi,
i'm using QPainter in my paintEvent(together with QStylePainter), and i get warning like this:

Warning: QPainter::begin: Paint device returned engine == 0, type: 2

I can't figure out when exactly this happens and it's rather hard to reproduce it. type 2 is something like QuickDraw on MacOS but i'm working on windows xp, so i'm totally confused...

Does anyone know what's this warning about?

jpn
19th October 2007, 03:06
i'm using QPainter in my paintEvent(together with QStylePainter)
Hmm, what does this actually mean? Notice that QStylePainter is a QPainter. Do you actually have two painters on the same device at time?