Improve QML value type usage
- Structured value types can and will preferably
be constructed property-by-property from a JavaScript object.
It means with such improvement as QML_STRUCTURED_VALUE
we can initialize resulting properties in a convenient way like below:
property myValueType v: ({d: 4.4, e: "a string"})
- refactor tst_nested to allow initialising properties from a
JavaScript objects on properties declaration step.
Task-number: QTBUG-142947
Pick-to: 6.11 6.10
Change-Id: I03832f9ce6137ef637e0ce8c73419479fad99df1
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
| commit | 35afbee954791fd34da8a421c9387aa1ff1c05b2 |
| parent | 2a6f1182bb352b5ac617aefafe34ad3d272d07b3 |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Fri, 9 Jan 2026 17:56:24 +0100 |
- M src/tools/qtprotoccommon/commontemplates.cpp
- M tests/auto/grpcgen/data/cmake_generated/qml/qtgrpcgen.qpb.h
- M tests/auto/protobufgen/data/cmake_generated/qml/qtprotobufgen.qpb.h
- M tests/auto/protobufgen/data/cmake_generated/qml_uri/qtprotobufgen.qpb.h
- M tests/auto/protobufgen/data/cmd_line_generated/qml/qtprotobufgen.qpb.h
- M tests/auto/protobufgen/data/cmd_line_generated/qml_uri/qtprotobufgen.qpb.h
- M tests/auto/protobufgen/data/cmd_line_generated/qml_uri_export_macro/qtprotobufgen.qpb.h
- M tests/auto/protobufgen/data/cmd_line_generated/qml_uri_export_macro_generate_package_subfolders/qt/protobuf/qtprotobufgen.qpb.h
- M tests/auto/protobufqml/nested/qml/tst_nested.qml