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