Details
-
Suggestion
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
Description
The Qt Quick editors, TextInput and TextEdit, should have built-in support for placeholder text. The following new properties should be added:
- placeholderText
- placeholder(Text?)Color
Qt Quick Controls 1 & 2 implement placeholder text support by creating an additional Text element, but it would be more efficient to re-use the same text node that is already used to show the edit text. Both never exist at the same time anyway. As a bonus, we have a chance to get the horizontal alignment right (QTBUG-55999).
Attachments
Issue Links
- is required for
-
QTBUG-55999 TextField's placeholder is aligned to right while it is a LTR text
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: QTBUG-56153 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
174182,18 | TextInput: add placeholderText and placeholderTextColor properties | dev | qt/qtdeclarative | Status: DEFERRED | -2 | 0 |
174454,12 | WIP: TextEdit: add placeholderText and placeholderTextColor properties | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
175167,19 | TextEdit: add placeholderText and placeholderTextColor properties | dev | qt/qtdeclarative | Status: DEFERRED | -2 | 0 |