Provides custom styling for TextArea . 更多...
import 语句: | import QtQuick.Controls.Styles 1.4 |
Since: | Qt 5.2 |
继承: | ScrollViewStyle |
范例:
TextArea { style: TextAreaStyle { textColor: "#333" selectionColor: "steelblue" selectedTextColor: "#eee" backgroundColor: "#eee" } }
The background color.
[read-only] control : TextArea |
The TextArea this style is attached to.
font : font |
The current font.
Override the default rendering type for the control.
支持的渲染类型是:
The default value is platform dependent.
另请参阅 Text::renderType .
The highlighted text color, used in selections.
The text highlight color, used behind selections.
文本颜色。
The default margin, in pixels, around the text in the TextArea .
This QML property was introduced in QtQuick.Controls.Styles 1.3.
另请参阅 TextArea::textMargin .