Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.15, 6.9
Description
In both Qt 5 and 6 instanceof operator doesn't work in cases like in the example:
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { width: 640 height: 480 visible: true Text { text: "result: " + (loader.item instanceof MyButton) } Loader { id: loader source: "MyButton.qml#2" } }
This behavior is especially problematic for hot reloading, where fragment part helps trick the cache and force the component to be reloaded from source.