Q_PROPERTY decls where?
Hello,
we have classes generated from within EntityEditor and would like to publish certain class members as QML-accessible properties. We can do this by placing Q_PROPERTY declarations in the generated header (ourclass.gen.h), which is obviously not ideal. An attempt to put the declarations in the custom header did not work out (it compiled, but properties were not accessible). How is this to be done?
In the same context: we would like the setter methods to immediately update the database. How can that be done?
thanks,
Christian
we have classes generated from within EntityEditor and would like to publish certain class members as QML-accessible properties. We can do this by placing Q_PROPERTY declarations in the generated header (ourclass.gen.h), which is obviously not ideal. An attempt to put the declarations in the custom header did not work out (it compiled, but properties were not accessible). How is this to be done?
In the same context: we would like the setter methods to immediately update the database. How can that be done?
thanks,
Christian