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

Material TextField placeholder slot left blank after clearing text programmatically

XMLWordPrintable

    • Linux/X11

      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()
              }
          }
      }
      

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes