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
Developer
Posts: 83
Registered: ‎02-18-2013
My Device: Blackberry 10
My Carrier: airtel

How to double value convert to string value in qml?

I am developing blackberry 10 application & I have a problem in QML file is that how to convert double value to string value?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to double value convert to string value in qml?

[ Edited ]

QString valueAsString =QString::number(value);

 

http://qt-project.org/doc/qt-5.0/qtcore/qstring.html#number-2


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: How to double value convert to string value in qml?

In QML -

value.toString()

or value+""

 


Andrey Fidrya, @zmeyc on twitter