import QtQuick 2.2 import QtQuick.Controls 2.15 Window { visible: true width: 640 height: 480 SpinBox { id: spinbox editable: true from: 1*1000 value: 1234*1000 to: 2000 * 1000 + 1 stepSize: 1 locale: Qt.locale("C") anchors.centerIn: parent property int decimals: 3 property real realValue: value / 1000 validator: DoubleValidator { bottom: Math.min(spinbox.from, spinbox.to) top: Math.max(spinbox.from, spinbox.to) locale: "C" } textFromValue: function(value, locale) { return Number(value / 1000).toLocaleString(locale, 'f', spinbox.decimals) } valueFromText: function(text, locale) { return Number.fromLocaleString(locale, text) * 1000 } } }