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

Material TextField placeholder slot left blank after clearing text programmatically

    XMLWordPrintable

Details

    • Linux/X11

    Description

      The Material TextField has a bug with the cut out for the placeholder text when the text is cleared programmatically. 

      It does not go back to being a solid line after clearing (leaves the gap where the placeholder text was)

      I have added a small project. just click 'clear text' 

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls.Material
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          Column{
              anchors.top:parent.top
              anchors.topMargin:10
              TextField{
                  id:textField
                  placeholderText:"Placeholder"
                  text:"hello"
              }
              Button{
                  text:"clear text"
                  onClicked:textField.clear()
              }
          }
      }
      

      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
              ihaber Ian Haber
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes