Advices on embedding python in Qt/C++ application

Alexis Barbot <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <CAFXj0vrz+EUu+9M7k-B=zj3DCFb314fLuJO7qs7dNGxr9KuE-w@mail.gmail.com>
 Dear PyQt community,
(sorry if this email is published twice, I initially sent it before
suscribing)

I'm asking for help to make a project of integrating python code in a
Qt/C++ application. The application is developed using Qt5.9 and mingw/gcc
on windows10 (using c++14 standards).
I already read the Python page for calling python from c++ (
https://docs.python.org/3/extending/embedding.html), and I can successfully
invoke python code from a c++ method. Now my main concern is to pass
existing object from c++ to the python part, ideally a QVariantMap that may
contain also custom types of mine. So I considered using PyQt for this,
assuming I could convert my own types using SIP. However after some trials,
I figured out I would have to download PyQt sources and compile it if I
wanted to have some c++ api to pass objects to Python. As I failed to do
this with mingw and my current Python installation, and before going beyond
with error messages, I'd like to ask: Is this something already done? Am I
trying to do it the right way? Are there some issues in my setup?
Thanks for your help
Regards

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.