Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-10958

QML type to track a JSON file on the project file structure

    XMLWordPrintable

Details

    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.

       

       

       

       

       

       

       

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            javihria Jarko Vihriälä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes