Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • 6.9
    • QML: Compiler
    • None

    Description

      import QtQuick
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Item {
              id: foo
          }
      
          Component.onCompleted: {
              const fooIsItem = foo instanceof Item
              console.log("foo is item: " + fooIsItem)
          }
      }
      

      runs into

      Warning: Main.qml:19:42: Could not compile binding for onCompleted: Instruction "generate_CmpInstanceOf" not implemented [compiler]
              const fooIsItem = foo instanceof Item
                                               ^^^^
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtqmlteam Qt Qml Team User
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes