SpinBox QML Type▲
-
Import Statement: import QtQuick.Controls 1.4
-
Since: Qt 5.1
-
Inherits: FocusScope
-
Group: SpinBox is part of https://
Detailed Description▲

https:// allows the user to choose a value by clicking the up or down buttons, or by pressing up or down on the keyboard. The user can also type the value in manually.
By default the https:// provides discrete values in the range [0-99] with a https:// of 1 and 0 https://.
SpinBox {
id: spinbox
}Note that if you require decimal values you will need to set the https:// to a non 0 value.
SpinBox {
id: spinbox
decimals: 2
}Property Documentation▲
activeFocusOnPress : bool▲
This property indicates whether the Spinbox should get active focus when pressed. The default value is true.
[since QtQuick.Controls 1.5] cursorPosition : int▲
This property holds the position of the cursor in the https://.
This property was introduced in QtQuick.Controls 1.5.
decimals : int▲
This property indicates the amount of decimals. Note that if you enter more decimals than specified, they will be truncated to the specified amount of decimal places. The default value is 0.
font : font▲
This property indicates the current font used by the https://.
[since QtQuick.Controls 1.1] horizontalAlignment : int▲
This property indicates how the content is horizontally aligned within the text field.
The supported values are:
-
Qt.AlignLeft
-
Qt.AlignHCenter
-
Qt.AlignRight
The default value is style dependent.
This property was introduced in QtQuick.Controls 1.1.
[read-only] hovered : bool▲
This property indicates whether the control is being hovered.
[read-only, since QtQuick.Controls 1.3] inputMethodComposing : bool▲
This property holds whether the https:// has partial text input from an input method.
While it is composing an input method may rely on mouse or key events from the https:// to edit or commit the partial text. This property can be used to determine when to disable events handlers that may interfere with the correct operation of an input method.
This property was introduced in QtQuick.Controls 1.3.
maximumValue : real▲
The maximum value of the https:// range. The https:// is clamped to this value. If maximumValue is smaller than https://, https:// will be enforced.
The default value is 99.
[since QtQuick.Controls 1.3] menu : Component▲
This property was introduced in QtQuick.Controls 1.3.
minimumValue : real▲
The minimum value of the https:// range. The https:// is clamped to this value.
The default value is 0.0.
prefix : string▲
The prefix for the value. I.e "$"
[since QtQuick.Controls 1.3] selectByMouse : bool▲
This property determines if the user can select the text with the mouse.
The default value is true.
This property was introduced in QtQuick.Controls 1.3.
stepSize : real▲
The amount by which the https:// is incremented/decremented when a spin button is pressed.
The default value is 1.0.
style : Component▲
suffix : string▲
The suffix for the value. I.e "cm"
value : real▲
The value of this https://, clamped to https:// and https://.
The default value is 0.0.
Signal Documentation▲
[since QtQuick.Controls 1.1] editingFinished()▲
This signal is emitted when the Return or Enter key is pressed or the control loses focus.
The corresponding handler is onEditingFinished.
The corresponding handler is onEditingFinished.
This signal was introduced in QtQuick.Controls 1.1.


