<div dir="ltr"><div>Thanks for these replies,</div><div><br></div><div>First of all, I had a look at PythonQt which indeed looked promising in my case. However I had toubles to build it, so I skipped that solution. Now I understand that this was probably caused by the compilation attempt with mingw while using a binary python installer, obviously compiled using msvc.</div><div>Furthermore, I got some success with PyQt: after preparing all paths and adding several flags to the configure command, I could perform the complete build wihtout errors. I so tried to write a small piece of code to validate my usage. It builds correctly, but it suddenly stop while running without any error message. Here is the code:</div><div><br></div><div>```</div><div>#include <QDebug><br></div><div>#include <Python.h></div><div>
<div>#include <QDateTime><br></div>

#include <sipAPIQtCore.h></div><div>#include <memory></div><div><br></div><div>int main(int argc, char* argv[])</div><div>{</div><div>    qDebug() << "start";</div><div>    Py_Initialize();</div><div>    auto d = PyDict_New();</div><div>    auto test = std::make_unique<QDateTime>();</div><div>    auto pyTest = sipConvertFromType(test.get(), sipType_QDateTime, nullptr);</div><div>    qDebug() << "end";</div><div>    Py_FinalizeEx();</div><div>    return 0;<br></div><div>}<br></div><div>```</div><div><br></div><div>It sounds like everything is installed but I'm missing some initialization step. Is that possible? Or maybe there's something else I should check/try?</div><div>Many thanks for your help.</div><div><br></div><div>Alexis<br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 26 août 2019 à 18:35, Andrew Cunningham <<a href="mailto:pyqt@a-cunningham.com">pyqt@a-cunningham.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Alexis,</div><div>You may want to look at PythonQT as a way to integrate python into a C++ application.</div><div>It happily co-exists with PyQT. Just make sure you are using the same QT version....<br></div><div><br></div><div>Andrew<br></div></div>
</blockquote></div>