TextFieldStyle QML Type
Provides custom styling for TextField. 更多...
Import Statement: | import QtQuick.Controls.Styles 1.4 |
开始支持版本: | Qt 5.1 |
属性
- background : Component
- control : TextField
- font : font
- passwordCharacter : string
- placeholderTextColor : color
- renderType : int
- selectedTextColor : color
- selectionColor : color
- textColor : color
详细描述
Example:
TextField { style: TextFieldStyle { textColor: "black" background: Rectangle { radius: 2 implicitWidth: 100 implicitHeight: 24 border.color: "#333" border.width: 1 } } }
属性
background : Component |
The background of the text field.
font : font |
The current font.
The placeholder text color, used when the text field is empty.
This QML property was introduced in QtQuick.Controls.Styles 1.1.
Override the default rendering type for the control.
Supported render types are:
- Text.QtRendering
- Text.NativeRendering
The default value is platform dependent.
This QML property was introduced in QtQuick.Controls.Styles 1.1.
参见 Text::renderType.