Help with values the slider
-
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 -
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@Gabriela20 hi
Slider{ stepSize: 0.000001 onValueChanged: console.log(value.toFixed(6)) }
-
-
@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 -
yes, this causes the error.