Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 14
Registered: ‎06-24-2013
My Device: Blackberry Z10 Developer Edition
My Carrier: Wind
Accepted Solution

QUuid class and createUuid method

I'm trying to create a UUID with the createUuid method, but I always get the {00000000-0000-0000-0000-000000000000} result.

By documentation should be generated random (https://developer.blackberry.com/native/reference/cascades/quuid.html#createUuid).


Someone gets the same issue?

 

Thanks.

Matt

Highlighted
Retired
Posts: 170
Registered: ‎09-06-2010
My Device: None
My Carrier: None

Re: QUuid class and createUuid method

....

#include <QUuid> ....
qDebug() << "UUID: "<< QUuid::createUuid().toString() << endl; ....

 Gives me in the log:

 

UUID:  "{0771c0e7-3c7b-482a-a4df-20208558b5b4}" 

 

What does your code actualy look like?