Ссылка
click to show
click to show
Hey,
I want to visualise some data, which I get over network with a byte-wise protocol. So I handle this communication via Python itself.
I want to update and create QML objects, where each QML object has its own Python(PySide6) object.
So I am wondering, what is possible/best practice to do this?
I read in the internet and following sites/articles:
Using Slots/Signals
https://stackoverflow.com/questions/39398730/qt-create-object-in-c-and-expose-to-qml
This seems not very straight forward for me, it feels like more work and I have no glue, if or how I expose every single PySide6 object, maybe with the new QML_Element decorator?
The other option is to create the objects from the backend
https://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html
I have the feeling, it is not very QML style and I will maybe loose control in QML?
Can you give me some advises? Is there somewhere an example? What is best practice with PySide6?
Thanks