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

QJSValue: url does not convert to QUrl

    XMLWordPrintable

Details

    • 7c59afe36 (dev), cf2221de7 (6.7), 66942d9ee (6.6), f7314a11f (tqtc/lts-6.5)

    Description

      The JS type url is not correctly converted to QUrl in C++. The respective QJSValue returns "isUndefined() = true". Also the "isUrl()" returns false.

      If a "toString()" is called on the url object in QML before handing it over to our C++ function then the value is passed correctly.

      To reproduce the issue please run the attached example project and click the button "passing URL"

      Attachments

        1. qtbug_119794.zip
          3 kB
          Tuomas Vaarala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            tuomas.vaarala Tuomas Vaarala
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: