Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108632

Cannot generate efficient code for equality comparison on non-primitive types

    XMLWordPrintable

Details

    • 6a816a9e0 (dev), 7f3c8b7dd (6.5)

    Description

      This generates following error

          property var v: null
          Component.onCompleted: {
              if (v !== null) {}
          }
      
      Error: main.qml:19:13: Could not compile binding for onCompleted: Cannot generate efficient code for equality comparison on non-primitive types QJSValue of QJSValue and QJSValue of (component in /foo/main.qml)::v with type QVariant
              if (v !== null) {}
                  ^
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-108632
          # Subject Branch Project Status CR V

          Activity

            People

              semih.yavuz Semih Yavuz
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes