Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Float in qml [Solved]
Forum Updated to NodeBB v4.3 + New Features

Float in qml [Solved]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 11.2k 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.
  • J Offline
    J Offline
    Julie1986
    wrote on last edited by
    #1

    Hello, I would like to know if it is possible to use float value in qml. not with cpp. only in qml alone

    1 Reply Last reply
    1
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yes, it's called real in QML, and is represented by qreal type in C++ (in Qt4 it equals to float for ARM, and double for PC). Or you can use double, too.

      (Z(:^

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Julie1986
        wrote on last edited by
        #3

        thanks. [solved]

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Nice. For future reference, here is a list of all basic types: "link":http://qt-project.org/doc/qt-4.8/qdeclarativebasictypes.html.

          (Z(:^

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Julie1986
            wrote on last edited by
            #5

            Hey Sierdzio,

            let me know if you could help me out with this, http://qt-project.org/forums/viewthread/20056/

            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