Details
-
User Story
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
We need a QML type in the Studio Controls lib that would track changes on given URL and would propagate those changes to the QML project itself.
This would be instantiated from a singleton QML element, like such:
import StudioControls.JsonBackend
JsonBackend
Unknown macro: { id}
Assuming there is a file 'datasource.json'. Now if the file is changed with anything (C++ backend, JS backend, text editor, Simulink), this watcher gets invoked and reads the changed file and updates the properties of the JsonBackend QML object. Other parts of the QML project can then do property bindings to the properties listed in the JsonBackend object and they would be updated automatically.