June 9, 2011

kathy kathy
Lab Rat
27 posts

[sloved]convert int to string in qml?


I have a slide in qml which have property called value with int data type. I want to display it in text when value changed. How to do it?

1 reply

June 9, 2011

situ117 situ117
Lab Rat
31 posts

It’s trivial. Look at following code:

  1.     property int value: 10
  2.     Text {
  3.         text: value
  4.     }

Do you’ve any specific requirements ?

  ‹‹ How do you access properties of a QML component in C++?      about a signal which will be handled in TextEdit area ››

You must log in to post a reply. Not a member yet? Register here!