-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Opened this issue up for discussion on the topic of completing :
- QObject wrapper
- Signals and Slots all working nicely
I have made a little bit of progress .. have managed to hack together some code that correctly sets up a zig struct as a QObject, passes the object to QML, and within the QML it can make method calls on the object.
So the basic wiring works - just needs a lot of work to make it work for the general case. Getting there.
Whilst QML can call Zig functions / object methods directly - I dont have actual Signal / Slot wiring working yet, or automatic Props. ie - when the Zig data changes, its not yet emitting signals that the QML should be picking up and updating the screen.
Difficulty is that on the zig side, we are literally "staring into the void" with the data, as everything is a C void*. I need to spend some time to understand the internals of all the Q classes :)