TextAreaStyle QML Type
Provides custom styling for TextArea. 更多...
Import Statement: | import QtQuick.Controls.Styles 1.4 |
开始支持版本: | Qt 5.2 |
基类: |
属性
- backgroundColor : color
- control : TextArea
- font : font
- renderType : int
- selectedTextColor : color
- selectionColor : color
- textColor : color
- textMargin : real
详细描述
Example:
TextArea { style: TextAreaStyle { textColor: "#333" selectionColor: "steelblue" selectedTextColor: "#eee" backgroundColor: "#eee" } }
属性
font : font |
The current font.
Override the default rendering type for the control.
Supported render types are:
- Text.QtRendering
- Text.NativeRendering
The default value is platform dependent.
参见 Text::renderType.
The default margin, in pixels, around the text in the TextArea.
This QML property was introduced in QtQuick.Controls.Styles 1.3.