Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.0
-
None
Description
Say a C++ type is registered to the QML engine with an extended type:
qmlRegisterExtendedType<Type, ExtendedType>(uri, 1, 0, "Type");
Furthermore, another C++ type public derives from Type, and is registered to the QML engine too:
qmlRegisterType<DerivedType>(uri, 1, 0, "DerivedType");
should the DerivedType in QML 'inherit' the additional properties of ExtendedType, or not?
Currently the behavior is inconsistent. That is, by default it inherits - unless there's another registration for another major import afterwards:
// this breaks DerivedType.data qmlRegisterType<Type>("XXX", 3, 0, "TypeXXX");
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-70782 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
241312,5 | Do not automatically include extension objects in derived types | dev | qt/qtdeclarative | Status: DEFERRED | -1 | 0 |