SpinBoxStyle QML Type
Provides custom styling for SpinBox More...
Import Statement: | import QtQuick.Controls.Styles 1.3 |
Since: | Qt 5.2 |
Properties
- background : Component
- control : SpinBox
- decrementControl : Component
- font : font
- 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
decrementControl : Component |
The button used to decrement the value.
font : font |
The font of the control.
This QML property was introduced in QtQuick.Controls.Styles 1.3.
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.
Override the default rendering type for the control.
Supported render types are:
- Text.QtRendering
- Text.NativeRendering
The default value is platform dependent.
See also Text::renderType.
© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.