Qt 6.11 is out! See what's new in the release
blog
Get rid of 'thousand separator' in SpinBox
QML and Qt Quick
7
Posts
3
Posters
2.6k
Views
1
Watching
-
Copying and pasting from somewhere else on the web.
(Not sure if we are allowed to link)
You could subclass QSpinBox and reimplement the textFromValue which is responsible for the display of the value to the spinbox widget. A possible implementation could be the following:
@QString MySpinBox::textFromValue(int value)
{
return this->locale()->toString(value);
}@Using locale is the best way since it will display the separator based on the user's settings.