Provides custom styling for SpinBox . 更多...
import 语句: | import QtQuick.Controls.Styles 1.4 |
Since: | Qt 5.2 |
范例:
SpinBox { style: SpinBoxStyle{ background: Rectangle { implicitWidth: 100 implicitHeight: 20 border.color: "gray" radius: 2 } } }
background : Component |
The background of the SpinBox .
[read-only] control : SpinBox |
The SpinBox this style is attached to.
decrementControl : Component |
The button used to decrement the value.
font : font |
The font of the control.
This property was introduced in QtQuick.Controls.Styles 1.3.
horizontalAlignment : int |
This property defines the default text aligment.
The supported values are:
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.
支持的渲染类型是:
The default value is platform dependent.
另请参阅 Text::renderType .
selectedTextColor : color |
The highlighted text color, used in selections.
selectionColor : color |
The text highlight color, used behind selections.
textColor : color |
文本颜色。