Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [sloved]convert int to string in qml?
Forum Updated to NodeBB v4.3 + New Features

[sloved]convert int to string in qml?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 29.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kathy
    wrote on last edited by
    #1

    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 Last reply
    0
    • S Offline
      S Offline
      situ117
      wrote on last edited by
      #2

      It's trivial. Look at following code:

      @
      property int value: 10
      Text {
      text: value
      }
      @

      Do you've any specific requirements ?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved