TextArea QML Type▲
-
Import Statement: import QtQuick.Controls
-
Inherits: TextEdit
-
Group: TextArea is part of qtquickcontrols-input
Detailed Description▲
https:// is a multi-line text editor. https:// extends https:// with a https:// functionality, and adds decoration.

TextArea {
placeholderText: qsTr("Enter description")
}https:// is not scrollable by itself. Especially on screen-size constrained platforms, it is often preferable to make entire application pages scrollable. On such a scrollable page, a non-scrollable https:// might behave better than nested scrollable controls. Notice, however, that in such a scenario, the background decoration of the https:// scrolls together with the rest of the scrollable content.
Scrollable TextArea▲
If you want to make a https:// scrollable, for example, when it covers an entire application page, it can be placed inside a https://.

ScrollView {
id: view
anchors.fill: parent
TextArea {
text: "TextArea\n...\n...\n...\n...\n...\n...\n"
}
}A https:// that is placed inside a https:// does the following:
-
Sets the content size automatically
-
Ensures that the background decoration stays in place
-
Clips the content
Tab Focus▲
By default, pressing the tab key while https:// has https:// results in a tab character being input into the control itself. To make tab pass active focus onto another item, use the attached https:// properties:
TextField {
id: textField
}
TextArea {
KeyNavigation.priority: KeyNavigation.BeforeItem
KeyNavigation.tab: textField
}See Also▲
See also https://, https://, https://
Property Documentation▲
background : Item▲
This property holds the background item.
If the background item has no explicit size specified, it automatically follows the control's size. In most cases, there is no need to specify width or height for a background item.
Most controls use the implicit size of the background item to calculate the implicit size of the control itself. If you replace the background item with a custom one, you should also consider providing a sensible implicit size for it (unless it is an item like https:// which has its own implicit size).
See Also▲
See also https://
[since QtQuick.Controls 2.5 (Qt 5.12)] bottomInset : real▲
This property holds the bottom inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://, https://
focusReason : enumeration▲
This property holds the reason of the last focus change.
This property does not indicate whether the item has https://, but the reason why the item either gained or lost focus.
|
Constant |
Description |
|---|---|
|
Qt.MouseFocusReason |
A mouse action occurred. |
|
Qt.TabFocusReason |
The Tab key was pressed. |
|
Qt.BacktabFocusReason |
A Backtab occurred. The input for this may include the Shift or Control keys; e.g. Shift+Tab. |
|
Qt.ActiveWindowFocusReason |
The window system made this window either active or inactive. |
|
Qt.PopupFocusReason |
The application opened/closed a pop-up that grabbed/released the keyboard focus. |
|
Qt.ShortcutFocusReason |
The user typed a label's buddy shortcut |
|
Qt.MenuBarFocusReason |
The menu bar took focus. |
|
Qt.OtherFocusReason |
Another reason, usually application-specific. |
Prefer Item::focusReason to this property.
[since QtQuick.Controls 2.1 (Qt 5.8)] hoverEnabled : bool▲
This property determines whether the text area accepts hover events. The default value is true.
This property was introduced in QtQuick.Controls 2.1 (Qt 5.8).
See Also▲
See also https://
[read-only, since QtQuick.Controls 2.1 (Qt 5.8)] hovered : bool▲
This property holds whether the text area is hovered.
This property was introduced in QtQuick.Controls 2.1 (Qt 5.8).
See Also▲
See also https://
[read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundHeight : real▲
This property holds the implicit background height.
The value is equal to background ? background.implicitHeight : 0.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://
[read-only, since QtQuick.Controls 2.5 (Qt 5.12)] implicitBackgroundWidth : real▲
This property holds the implicit background width.
The value is equal to background ? background.implicitWidth : 0.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://
[since QtQuick.Controls 2.5 (Qt 5.12)] leftInset : real▲
This property holds the left inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://, https://
placeholderText : string▲
This property holds the short hint that is displayed in the text area before the user enters a value.
[since QtQuick.Controls 2.5 (Qt 5.12)] placeholderTextColor : color▲
This property holds the color of https://.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://
[since QtQuick.Controls 2.5 (Qt 5.12)] rightInset : real▲
This property holds the right inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://, https://
[since QtQuick.Controls 2.5 (Qt 5.12)] topInset : real▲
This property holds the top inset for the background.
This property was introduced in QtQuick.Controls 2.5 (Qt 5.12).
See Also▲
See also https://, https://
Attached Property Documentation▲
TextArea.flickable : TextArea▲
Signal Documentation▲
pressAndHold(MouseEvent event)▲
This signal is emitted when there is a long press (the delay depends on the platform plugin). The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
The corresponding handler is onPressAndHold.
See Also▲
See also https://, https://
[since QtQuick.Controls 2.1 (Qt 5.8)] pressed(MouseEvent event)▲
This signal is emitted when the text area is pressed by the user. The event parameter provides information about the press, including the x and y coordinates of the press, and which button is pressed.
The corresponding handler is onPressed.
This signal was introduced in QtQuick.Controls 2.1 (Qt 5.8).
See Also▲
See also https://, https://
[since QtQuick.Controls 2.1 (Qt 5.8)] released(MouseEvent event)▲
This signal is emitted when the text area is released by the user. The event parameter provides information about the release, including the x and y coordinates of the press, and which button is pressed.
The corresponding handler is onReleased.
This signal was introduced in QtQuick.Controls 2.1 (Qt 5.8).
See Also▲
See also https://, https://


