Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56153

Add support for placeholder text

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • None

      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).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jpnurmi J-P Nurmi
            Votes:
            19 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes