[PyQt] Debugging QML for a PyQt5 Application
Hans-Peter Jansen
hpj at urpla.net
Wed Dec 7 16:43:35 GMT 2016
On Mittwoch, 7. Dezember 2016 10:46:44 Cody Scott wrote:
> I'm wondering if it is possible to use the Qt Creator debugger to debug QML.
>
> I see that there was an old thread on this mailing list (from 2013) and
> someone was able to get it to work.
>
> https://riverbankcomputing.com/pipermail/pyqt/2013-October/033373.html
>
> Here is the code, just a simple Python and QML file.
>
> https://github.com/Siecje/pyqt5-qml-debug
If you build PyQt with the debug flag, the Qt QML debugging infrastructure
gets enabled.
I haven't done QML debugging myself, but know about this, because I take care
about the packaging of PyQt in openSUSE, where all packages are built with
debugging enabled in order to produce debuginfo packages. Hence I've applied a
patch to disable the QML debugging for PyQt, since this could generate a
security issue for production systems..
Pete
More information about the PyQt
mailing list