Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.3.1, 6.5.1, 6.6
-
b48bb41681f561b59a4ce9c9d0ac95b23d5ccb1e
Description
Code bellow if I run it with qml from Qt 6.3.1 prints:
qml: is foo Item: true qml: is foo Foo: false qml: is boo Boo: true
Expected result that "foo instanceof Foo" is true,
while actual result is false.
main code:
import QtQuick Item { component Foo : Item { property int a: 17 } Foo { id: foo a: 15 } Boo { id: boo b: 3 } Component.onCompleted: { console.log("is foo Item: ", foo instanceof Item); console.log("is foo Foo: ", foo instanceof Foo); console.log("is boo Boo: ", boo instanceof Boo); } }
Boo.qml
import QtQuick Item { property int b: 17 }
Attachments
Issue Links
- resulted in
-
QTBUG-121014 [REG 6.6 → 6.7] Faulty behavior of instanceof when multipe QML engines are used
- Closed