How to paint to pixmap ?
-
@Dariusz
Ok it was not dangling pointer then. :)
I tried for fun making invalid pixmap but i could make it crash.
Maximum effect was nothing shown.
So i have a feeling the crash might have been a bit unrelated to the pixmap.But if this code also crashes, we might found some binding bug :)
-
Hi
is
m = QPixmap(500,500)like (c++)
QPixmap m(500,500);or
QPixmap *m = new QPixmap (500,500);Does it also crash there if you make new project and does nothing but
m = QPixmap(500,500)If you can make a small example that crash, its ok to open bug report.
-
Hi,
Add
p.end()
when you're done painting. So in your code, before you callsetPixmap
. -
I don't know how the binding manages that but when testing the code, I got the following message:
QPaintDevice: Cannot destroy paint device that is being painted