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. Help with values the slider
Forum Updated to NodeBB v4.3 + New Features

Help with values the slider

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 408 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.
  • Gabriela20G Offline
    Gabriela20G Offline
    Gabriela20
    wrote on last edited by
    #1

    Hello, could someone help me, I am working with a slider in an interface from qml, I need to retrieve values ​​with six decimal places, example:
    1.344423
    How can I achieve this because when recovering the data, only 4 decimal places will be recovered and I need it to be very exact for the type of application I am working on. It would be helpful if someone can tell me how to do this or know of an example

    ODБOïO 1 Reply Last reply
    0
    • Gabriela20G Gabriela20

      Hello, could someone help me, I am working with a slider in an interface from qml, I need to retrieve values ​​with six decimal places, example:
      1.344423
      How can I achieve this because when recovering the data, only 4 decimal places will be recovered and I need it to be very exact for the type of application I am working on. It would be helpful if someone can tell me how to do this or know of an example

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @Gabriela20 hi

         Slider{     
                  stepSize: 0.000001
                  onValueChanged: console.log(value.toFixed(6))            
              }
      
      1 Reply Last reply
      1
      • Gabriela20G Offline
        Gabriela20G Offline
        Gabriela20
        wrote on last edited by
        #3

        @LeLev said in Help with values the slider:

        0.000001

        I get this error

        a124aa49-e91d-4f7b-a052-943a5c42dbb4-image.png

        ODБOïO 1 Reply Last reply
        0
        • Gabriela20G Gabriela20

          @LeLev said in Help with values the slider:

          0.000001

          I get this error

          a124aa49-e91d-4f7b-a052-943a5c42dbb4-image.png

          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by ODБOï
          #4

          @LeLev said in Help with values the slider:

          @Gabriela20 hi
          Slider{
          stepSize: 0.000001
          onValueChanged: console.log(value.toFixed(6))
          }

          This causes that error ?
          Please check your code again

          1 Reply Last reply
          0
          • Gabriela20G Offline
            Gabriela20G Offline
            Gabriela20
            wrote on last edited by
            #5

            yes, this causes the error.

            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