On Tuesday 19 August 2014 10:34:25 Alan Alpert wrote:
> > That's a URL transformation.
> >
> > How did the string come from QML world? Did you pass it to a function that
> > expects a URL?
>
> Yes, QtQuick image providers look like this in the QML file: Image {
> source: "image://myimageprovider/key" } . The URL gets broken down and
> the key gets sent to the appropriate QQuickImageProvider.
>
> The idea is that the key should be something human readable, but if
> you need to pass through machine-readable UUIDs then probably just use
> the URL decoding functions on it.
>
> See also: http://qt-project.org/doc/qt-5/qquickimageprovider.html,
> http://qt-project.org/doc/qt-5/qurl.html#fromPercentEncoding
In other words: you can't prevent QML from encoding it.
You should decode it or store the encoded form in your map.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development