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

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

XMLWordPrintable

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

      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) {}
                  ^
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes