Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
6.6.0, 6.7.0
-
None
-
Android 11
-
-
8f876c620 (dev), 51c6cac7e (6.7), 6986f1c26 (6.6), b13500e7e (tqtc/lts-6.5)
Description
The thing is that normally the `placeholderText` of TextField and TextArea elements disappear when input text to the element. This behavior happens on WASM and Linux Desktop(those I have tried).
But in Android, the placeholder text does not disappear it moves to the top of the element.
Also, in the case of TextArea, the input text gets on top of the placeholder text(this is the BUG).
I expect the behavior to be the same across platforms because Qt is multiplatform.(this is a minor bug)
I prefer the behavior on Wasm and Linux Desktop platforms.
To reproduce the issue, run the following example:
import QtQuick import QtQuick.Controls.Material import QtQuick.Layouts ApplicationWindow { id: window width: 640 height: 480 visible: true ColumnLayout { anchors.fill: parent TextField { Layout.margins: 20 Layout.fillWidth: true placeholderText: "placeholderText1" } TextField { Layout.margins: 20 Layout.fillWidth: true placeholderText: "placeholderText2" background: Rectangle { border.width: 1 // TextControlBorderThemeThickness border.color: "white" color: "transparent" } } TextArea { Layout.margins: 20 Layout.fillHeight: true Layout.fillWidth: true placeholderText: "placeholderText \n of many lines\m maybe is in JSON \n format" } } }
The resulting GUI for my android device is attached in the pictures.
Attachments
Issue Links
- relates to
-
QTBUG-113321 Material TextArea and TextField placeholder text incorrectly clipped
-
- Closed
-
-
QTBUG-118856 Placeholder text does not follow the set horizontalAlignment in Material style.
-
- Closed
-
- resulted from
-
QTBUG-109218 Update Material TextField to Material 3
-
- Closed
-
-
QTBUG-110231 Update Material TextArea to Material 3
-
- Closed
-
-
QTBUG-72554 Quick Controls 2 Material: Support for textField with floating label
-
- Closed
-