TextFieldStyle
Provides custom styling for TextField. More...
Import Statement: | import QtQuick.Controls.Styles 1.1 |
Since: | Qt 5.1 |
Properties
- background : Component
- control : TextField
- font : font
- placeholderTextColor : color
- renderType : int
- selectedTextColor : color
- selectionColor : color
- textColor : color
Detailed Description
Example:
TextField { style: TextFieldStyle { textColor: "black" background: Rectangle { radius: 2 implicitWidth: 100 implicitHeight: 24 border.color: "#333" border.width: 1 } } }
Property Documentation
The placeholder text color, used when the text field is empty.
This QML property was introduced in Qt 5.2.
Override the default rendering type for the control.
Supported render types are:
- Text.QtRendering
- Text.NativeRendering - the default
This QML property was introduced in Qt 5.2.
See also Text::renderType.