Qmltc does not emit any errors or warnings on qml files where the root component has required properties:
would return an error during runtime if
was not called with the QVariantMap nameOfRequiredProperties -> values,
the class generated by qmltc can be initialized with the default empty constructor
and does not warn that a required property is missing (until much later when that property is used for something and just contains its default value).
Therefore, qmltc should stop generating the default empty constructors for types with required properties and instead generate a constructor like
when the property is bound to a value, such that setBinding() can be called on the required property.
Note 1: which of these overloads should be accepted? (see Qbindable::setBinding() overloads)
Note 2: once one overload is chosen, how should the combinatorial explosion be handled (e.g. for n required properties there are 2^n possible constructors if every property can be passed in as a constant value or as a binding for the bindable). Maybe using something like a
|For Gerrit Dashboard: QTBUG-105896|
|450420,4||WIP: qmltc: require required properties in constructor||dev||qt/qtdeclarative||Status: ABANDONED||-2||0|