2 ms·
I write all my Qt in Python. I've never used the C++ bindings. But in Python you don't need to deal with QML or JavaScript.
by dotancohen 11mo ago
I write all my Qt in Python. I've never used the C++ bindings. But in Python you don't need to deal with QML or JavaScript.
- wonklebonkle 11mo agoAre you writing QtWidgets or QtQuick in Python? My understanding is that QML is mandatory for QtQuick apps.
- dotancohen 11mo agoI use QtWidgets. I've never touched QtQuick.
- amelius 11mo agoI did some Qt programming in Python (PySide6), but ran into segfaults, which should of course not happen no matter what you do in a scripting language (except when using modules like ctypes). Many of these cases were related to object lifetime handling which is difficult to do correctly in Qt, and many people have written about it. In Python (a garbage-collected language) one should not have to worry about this.
- dotancohen 11mo agoI also use PySide. No segfaults, but I'm not doing anything complicated.