- Qt 5.3
- Qt Quick Controls
- QML Types
- SpinBoxStyle QML Type
- Qt 5.3.2 Reference Documentation

# SpinBoxStyle QML Type

Provides custom styling for SpinBox More...

Import Statement: | `import QtQuick.Controls.Styles 1.2`
Since: | Qt 5.2

- List of all members, including inherited members

## Properties

- background : Component
- control : SpinBox
- decrementControl : Component
- horizontalAlignment : int
- incrementControl : Component
- renderType : int
- selectedTextColor : color
- selectionColor : color
- textColor : color

## Detailed Description

Example:

    SpinBox {
        style: SpinBoxStyle{
            background: Rectangle {
                implicitWidth: 100
                implicitHeight: 20
                border.color: "gray"
                radius: 2
            }
        }
    }

## Property Documentation

background : Component

The background of the SpinBox.

read-onlycontrol : SpinBox

The SpinBox attached to this style.

decrementControl : Component

The button used to decrement the value.

horizontalAlignment : int

This property defines the default text aligment.

The supported values are:

- Qt.AlignLeft
- Qt.AlignHCenter
- Qt.AlignRight

The default value is Qt.AlignRight

incrementControl : Component

The button used to increment the value.

renderType : int

Override the default rendering type for the control.

Supported render types are:

- Text.QtRendering
- Text.NativeRendering - the default

See also Text::renderType.

selectedTextColor : color

The highlighted text color, used in selections.

selectionColor : color

The text highlight color, used behind selections.

textColor : color

The text color.