Re: [Interest] Painting with QPainter to QPixmap in C++ method invoked from QML

2018-09-12 Thread Guenter Schwann via Interest
On Mittwoch, 12. September 2018 09:40:08 CEST Igor Mironchik wrote: > Hello. > > Let's say I have C++ code to draw to QPixmap with QPainter. > > This code returns data:image/png;base64,... string that can be used in QML. > > But when I invoke this method from QML I've got > > QPainter::begin: P

[Interest] Painting with QPainter to QPixmap in C++ method invoked from QML

2018-09-12 Thread Igor Mironchik
Hello. Let's say I have C++ code to draw to QPixmap with QPainter. This code returns data:image/png;base64,... string that can be used in QML. But when I invoke this method from QML I've got QPainter::begin: Paint device returned engine == 0, type: 2 So my question is how can I draw with QPai