Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82145

Improve/redesign models in QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • 6.x
    • 5.15, 6.0
    • None

    Description

      The current implementation of models in QML is suboptimal, we should have an implementation that:

      • is typed like GraphQL, Avro, protobuffers, Parquet,... i.e.
        • types consisting of basic types (int,double,string,binary data, null, (empty?))
        • lists of a uniform type (list<type>)
        • maps of a uniform type (map<string,type>)
        • objects (list of fields(text) each field having a type)
      • easy interconversions from/to json and similar formats
      • provides a way to register observers for various notifications (local changes, changes should not propagate up the hierarchy by default).
      • an API that can accommodate data that can be loaded and saved asynchronously

      This is something that can make the building of an application talking to a RESTAPI, or any data oriented application much simpler.

      This could be prototyped in Ultralite first.

      Attachments

        Issue Links

          Activity

            People

              fawzi Fawzi Mohamed
              fawzi Fawzi Mohamed
              Votes:
              3 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: