Solved Developing Lifecycle for QML Component or JSObject. How?
-
Hello all!
I've got an issue when the use case looks like - the action that should be performed has steps (for example Step1, Step2, Step3, etc) and every step should be having separate handler and if there are presented or downloaded custom JS script this action should be using custom instead of defaultThe best example is how in iOS handle UIViewController creating action where defined lifecycle schema and every point of this schema might be overriding. I need to develop something like this for QML component. What is the solution for this issue?
I know how to override JSObject methods through something like this
Object.assign({}, JSObject, fieldToUpdate);
But how to do it for QML component? Suggestions?
-
Solution found. Issue closed. Developed prototype based on mixed functions from JS and C++ without signals.
Example is here https://github.com/ArboreusSystems/arboreus_examples/tree/master/qt/QML/Lifecycle/Lifecycle_v1