TextAreaStyle QML Type

Provides custom styling for TextArea . 更多...

导入语句: 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

TextArea this style is attached to.


font : font

The current font.


renderType : int

Override the default rendering type for the control.

Supported render types are:

  • Text.QtRendering
  • Text.NativeRendering

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

The text color.


textMargin : real

The default margin, in pixels, around the text in the TextArea .

This QML property was introduced in QtQuick.Controls.Styles 1.3.

另请参阅 TextArea::textMargin .