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

Improve/redesign models in QML

XMLWordPrintable

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

      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.

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

            fawzi Fawzi Mohamed
            fawzi Fawzi Mohamed
            Votes:
            5 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes