## MQWidget.DoubleSpinBox class

A real number input class.

Super classes: MQWidget.WidgetBase

### Property

get | set | Type | Name | Description
--- | --- | --- | --- | ---
x | x | float | position | a current value
x | x | float | min | a minimum value
x | x | float | max | a maximum value
x | x | float | increment | an inremental value for up/down button
x | x | bool | exponential | an exponential mode
x | x | float | mantissa | a mantissa
x | x | int | decimalDigit | a displaying decimal digit
x | x | bool | variableDigit | a variable decimal digit
x | x | int | autoDigit | an automatic decimal digit
x | x | int | maxDecimalDigit | a maximum decimal digit
x | x | string | alignment | an alignment for a text
[left] | left
[right] | right
x | x | int | visibleColumn | a number of columns to display
x | x | bool | enterSelect | Auto selection on mouse-enter
x | x | bool | enterKeyDefault | Allow default procedure by enter key
| x | string | displayUnit | Unit for displaying
[] | none
[mm] | millimeter
[cm] | centimeter
[m] | meter
[km] | kilometer
[in] | inch
[ft] | feet

### Method

Member | Description
--- | ---
DoubleSpinBox | Constructor.
setFocus | Set a focus.
addChangedEvent | Add an event after finishing to change a value.
addChangingEvent | Add an event while changing a value.

DoubleSpinBox([parent])
Constructor.
  Parameters:
  MQWidget.WidgetBase | parent | - | A parent widget

setFocus([focus])
Set a focus.
  Parameters:
  bool | focus | - | a focus

addChangedEvent(callback)
Add an event after finishing to change a value.
  Parameters:
  function(sender) | callback | - | callback function

addChangingEvent(callback)
Add an event while changing a value.
  Parameters:
  function(sender) | callback | - | callback function