Qt 6.11 is out! See what's new in the release
blog
formating QML label number
-
Hi,
I am displaying a C++ real number in QML Label.
How can I format it to 1 number past decimal ?
Regards,
Steph@sancelot you can use toFixed(x)
with x the number of decimals after the separator