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

Implicit conversion from url to string works differently than before

    XMLWordPrintable

Details

    Description

      Previously there was an automatic conversion from url to string. In recent builds one needs to use "" + myUrl.
      See attached qml file. It works differently in old builds and versions that with recent QtQuick 2.0.

      var mP = Qt.resolvedUrl(".")
      console.log (mP.substr(7)) // does not work: TypeError: Object file:///home/dajansen/Dropbox/QML/BUGS/ has no method 'substr'
      
      mP = Qt.resolvedUrl(".") + ""
      console.log (mP.substr(7)) // works
      

      Attachments

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

        Activity

          People

            aakenned Aaron Kennedy
            tmikola Tapani Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes