TextFieldStyle QML Type▲
-
Import Statement: import QtQuick.Controls.Styles 1.4
-
Since: Qt 5.1
-
Group: TextFieldStyle is part of Styling Controls
Detailed Description▲
Example:
TextField {
style: TextFieldStyle {
textColor: "black"
background: Rectangle {
radius: 2
implicitWidth: 100
implicitHeight: 24
border.color: "#333"
border.width: 1
}
}
}Property Documentation▲
background : Component▲
The background of the text field.
[read-only] control : TextField▲
The TextField this style is attached to.
font : font▲
The current font.
padding group▲
padding.bottom : int
padding.left : int
padding.right : int
padding.top : int
This grouped property holds the top, left, right and bottom padding.
[since QtQuick.Controls.Styles 1.4] passwordCharacter : string▲
The password character that is displayed when echoMode on the TextField is set to TextInput.Password or TextInput.PasswordEchoOnEdit.
This property was introduced in QtQuick.Controls.Styles 1.4.
[since QtQuick.Controls.Styles 1.1] placeholderTextColor : color▲
The placeholder text color, used when the text field is empty.
This property was introduced in QtQuick.Controls.Styles 1.1.
[since QtQuick.Controls.Styles 1.1] renderType : int▲
Override the default rendering type for the control.
Supported render types are:
-
Text.QtRendering
-
Text.NativeRendering
The default value is platform dependent.
This property was introduced in QtQuick.Controls.Styles 1.1.
See Also▲
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.


