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" } }
backgroundColor : color |
The background color.
[read-only] control : TextArea |
The TextArea this style is attached to.
font : font |
The current font.
renderType : int |
Override the default rendering type for the control.
支持的渲染类型是:
The default value is platform dependent.
另请参阅 Text::renderType .
selectedTextColor : color |
The highlighted text color, used in selections.
selectionColor : color |
The text highlight color, used behind selections.
textColor : color |
文本颜色。
textMargin : real |
The default margin, in pixels, around the text in the TextArea .
This property was introduced in QtQuick.Controls.Styles 1.3.
另请参阅 TextArea::textMargin .