Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
QDS 1.3.0
-
None
Description
Range of SpinBox is not big enough if decimals is 3 or bigger
Internally QtQuick.controls.SpinBox from Controls 2 uses integers.
This means the SpinBox does not internally use floating point representation.
This seriously limits the precision.
If 3 decimals are required already a million is out of bounds.
In other words:
A 32 bit integer has roughly 10 digits.
If subtract 3 digits for 3 decimals we are down to 7 digits.
Since the integer is signed one million is already out of bounds.
In 3D this will most likely be a problem unless we only allow a maximum of 2 decimals.