[Development] QML and UUID

Thiago Macieira thiago.macieira at intel.com
Tue Aug 19 01:59:32 CEST 2014


On Tuesday 19 August 2014 01:36:54 Renaud wrote:
> Hi all,
> 
> I am running into issue when I try to use QQuickImageProvider and
> QUUID.toString().
> 
> I store my images into map<QString,QPixmap>. The key is the uuid
> (stored as QString) from instances of my custom class.
> 
> So, stored keys in the map are like this:
> {22715e73-e6ca-4cca-a77d-fe68746b9f79}, but when my QML component asks
> to the provider, the provider receives this kind of key:
> "%7B22715e73-e6ca-4cca-a77d-fe68746b9f79%7D".
> 
> It can not find any match. Is There a way to prevent the modification
> in QML world ?
> Of course, I can implement some workarounds, such as remove curly
> braces or use other kind of key.  But it will be really painful.

That's a URL transformation.

How did the string come from QML world? Did you pass it to a function that 
expects a URL?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list