filcuc / dotherside

C language library for creating bindings for the Qt QML language
Other
200 stars 40 forks source link

Question: How are properties meant to work #123

Closed yobson closed 3 months ago

yobson commented 3 months ago

I'm writing some haskell bindings, and I have slots working. But I'm really struggling with properties! I do not know how they are meant to work:

I keep getting:

C++: readProperty: invalid read method for property

To get this, I have a QMetaObject with a property counter with a signal getcounter. This signal has no parameters. I'm not touching set_property in Object.

I've been playing around for a day and can't get it to work! Can you describe how properties are meant to be set up? Perhaps in C?

All the best

James