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. Slider issues in qt 5.8
Forum Updated to NodeBB v4.3 + New Features

Slider issues in qt 5.8

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

    I am using QT 5.8 , in which i am using the library qt quick controls 2.1
    I am facing a wierd issue , when i try to access the slider value at 3.5 , it is dislaying it in recurring as 3.49999999999 and same is the issue at value 7 which is displaying as 6.99999999999999
    I just wanted to know if its library issues ??
    How can i resolve it ???

    1 Reply Last reply
    0
    • jpnurmiJ Offline
      jpnurmiJ Offline
      jpnurmi
      wrote on last edited by
      #2
      Text {
          text: slider.value.toFixed(1)
      }
      
      1 Reply Last reply
      2

      • Login

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