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

qmlsc: Support compiling QUrl equality comparisons

    XMLWordPrintable

Details

    • 95228f0e6 (dev), 3eb726a49 (6.5)

    Description

      Code

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          Image {
              visible: source !== Qt.url("")
          }
      }
      

      Compiler warning

      Warning: main.qml:9:32: Could not compile binding for visible: Cannot generate efficient code for equality comparison on non-primitive types QJSValue of QJSValue and QJSValue of (component in Z:/Projects/build-test-Desktop_Qt_6_5_0_MSVC2019_64bit-Debug/main.qml)::source with type QUrl [compiler]
              visible: source !== Qt.url("")
                                     ^^^
      

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes