Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
Description
JS might not have types, but QML does. It would be nice to have a Qt.instanceOf function so that you can check types. Note that this would operate on QML types, so Foo.qml (with contents Rectangle
{...}) would be of type Foo and Rectangle (since this is effectively QML inheritance for components).