Embedding matplotlib in C++ app
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Has anyone tried embedding matplotlib in a C++ Qt app using PythonQt?
Is it "just" a case of translating the backend_qt4agg and backend_qt4 modules of matplotlib from PyQt4 to PythonQt?
Yes, I think it should mainly be replacing PyQt4 with PythonQt imports and maybe some minor details.
I am not familiar with the backends, if they derive QObjects via Python you either might be lucky and it just works, or
you might run into PythonQt bugs… But as far as I remember the backend is mainly drawing a QImage with the results,
so you should be able to get it running.