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

padding should not affect placeholderText when TextField is focused

    XMLWordPrintable

Details

    • Windows

    Description

      When a TextFiled is focused the placeholderText at the top should not have the padding applied to it because otherwise it will overlap with the border. The purpose of the padding in my case is to make space for an icon.

       

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Controls.Material
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          TextField {
              anchors.centerIn: parent
              width: 200
              placeholderText: qsTr("User name")
              leftPadding: 32
          }
      }
      

       

      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
              mugi_luffy Hamza Mlayeh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes