Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7
-
None
-
Fedora 39, KDE Plasma
-
d0e16e3f6 (dev), ef57b8798 (6.7)
Description
See the minimal example in https://invent.kde.org/nicolasfella/qml-test/-/tree/instanceof
"actions instanceof Comps.Action" should yield true, but is false.
When commenting out the c2 QML engine in main.cpp it works as expected.
When commenting out the qmlRegisterType for Action.qml it works as expected.
It works as expected in Qt 6.6
qtbase 33b4c2d4af90d255b59ac79175c145f0e3299915
qtdeclarative 1dcd94caa6ce0b73ddfff1a258d3c5fc557964fe
This causes https://bugs.kde.org/show_bug.cgi?id=479770 and https://bugs.kde.org/show_bug.cgi?id=479775 because the instanceof check in https://invent.kde.org/frameworks/kirigami/-/blob/master/src/controls/private/PrivateActionToolButton.qml#L27 is yielding false
Attachments
Issue Links
- relates to
-
QTBUG-120189 [Reg 6.6 -> 6.7] Cannot assign object of type "IconPropertiesGroup" to property of type "IconPropertiesGroup_QMLTYPE_1*" as the former is neither the same as the latter nor a sub-class of it
- Closed
- resulted from
-
QTBUG-106066 instanceof don't work with inline components
- Closed
For Gerrit Dashboard: QTBUG-121014 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
531285,2 | QtQml: Don't create metatypes for procedurally registered composites | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
531667,2 | QtQml: Don't create metatypes for procedurally registered composites | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |