Jul-02-2020, 03:36 PM
(This post was last modified: Jul-02-2020, 03:36 PM by deanhystad.)
According to the docs QPainter::begin returns True if successful, else False. Reasons for failure are the provided QPaintDevice is 0 (your problem), a provided paint image is null (None), or there is more than one painter.
I am confused about the type. The docs say type 3 is macOS's Quartz2D (CoreGraphics).
What did you use to get the Paint device (engine 0)? I think that is where you should be looking for the problem.
Getting a peek at the code would be interesting. Could you snip the part that is creating/initializing the argument that is passed to QPainter.begin(arg)?
I am confused about the type. The docs say type 3 is macOS's Quartz2D (CoreGraphics).
What did you use to get the Paint device (engine 0)? I think that is where you should be looking for the problem.
Getting a peek at the code would be interesting. Could you snip the part that is creating/initializing the argument that is passed to QPainter.begin(arg)?