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

Add support for placeholder text

    XMLWordPrintable

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

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes