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

padding should not affect placeholderText when TextField is focused

XMLWordPrintable

    • Windows

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

       

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes