Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
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
- blocks
-
QTBUG-99115 Make it easier to read and write model data outside of a delegate
- Reported
- relates to
-
QTBUG-77622 Avoid accessing properties as strings
- Open