Hallo List,
I need to embed matplotlib in a Qt5/QML application, and found a starting point created
by Frederic Collonval.
It is a fairly old version, and not working anymore, so I forked it to create an updated version.
It can be found on
https://github.com/SietseAchterop/matplotlib_qtquick_playground
I only updated the backend and the QtQuick version 2 example.
But I am stuck in the backend, in backend_qquick5agg.py.
In the QtQuick.QQuickPaintedItem function paint in line 118 there is:
stringBuffer = self.renderer._renderer.tostring_bgra()
Both tostring_xxx functions do not exist anymore. How can I solve this?
Is the byteorder problem solved somewhere else? Is this a qt4/qt5 issue?
Hopefully someone can point me in a direction. It would be very nice to have
a possibility to use matplotlib within QML apps.
Thanks in advance,
Sietse