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. Qt Quick UI Forms number formatted

Qt Quick UI Forms number formatted

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 524 Views
  • 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.
  • piervalliP Offline
    piervalliP Offline
    piervalli
    wrote on last edited by
    #1

    In the Qt Quick UI Forms we can not use js. How we can format the number?

    Text {
    text: "The value is: " + Number(4742378.423).toLocaleString(Qt.locale("de_DE"))
    }

    Thanks

    1 Reply Last reply
    0
    • 6thC6 Offline
      6thC6 Offline
      6thC
      wrote on last edited by
      #2

      Do all your advanced bindings and scripting in the QML file and have that create the UI form.

      see: http://doc.qt.io/qtcreator/creator-quick-ui-forms.html

      button is aliased (using the same name) in that example.

      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