Unsolved Python and C++
-
Hello,
Would it be possible to use python and c++ together in the same project? Python and C++ would have to communicate, as it c++ would have to be able to 'store' returns from the python.
Thanks in advance -
@Alfie-Anil
Yes, if you wish, you can have either way (C++ calling Python or Python calling C++). IIRC, it's probably easier to have the main program written in C++ which embeds Python than the other way round.Python-level reading material:
https://docs.python.org/3/extending/windows.html
https://docs.python.org/3/extending/embedding.htmlIf plain non-Qt Python is not a good fit, you may want a Qt-aware Python library like PyQt5. I'm not sure, but there may be specific references for that under PyQt5 (or even PySide2; don't forget that choosing PyQt5 changes your licensing requirements).