pyotherside icon indicating copy to clipboard operation
pyotherside copied to clipboard

Python interpreter not destroyed when parent QML is destroyed

Open accumulator opened this issue 6 years ago • 1 comments

When unloading a QML component that contains a Python QML element (in my case through QmlLive feature of QtCreator, i.e. QQuickView->setSource(..)), the python interpreter seems to stay alive.

The reload of the parent component succeeds, but then the python interpreter seems to have kept its state, and does not re-execute the code from the module imports..

accumulator avatar Nov 01 '19 14:11 accumulator

Thanks for your report. This can probably be done with Py_FinalizeEx.

thp avatar Nov 05 '19 21:11 thp