Slider issues in qt 5.8



  • 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 ???



  • Text {
        text: slider.value.toFixed(1)
    }
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.