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

Background of Material style TextField doesn't respect control width

    XMLWordPrintable

Details

    • Windows
    • b563bd583a50442b52e47f8c5f149aebafb385f2 (qt/qtquickcontrols2/5.12)

    Description

      TextField Layout is not working when using Material Style. 

      If you test the code below, you'll notice the TextField doesn't fill the Layout width. 

       

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      import QtQuick.Layouts 1.12
      
      ApplicationWindow {
          id: window
          width: 400
          height: 400
          visible: true
      
          ColumnLayout {
              spacing: 20
              anchors.fill: parent
      
              TextField {
                  id:txtName
                  focus: true
                  placeholderText: "Name"
                  Layout.fillWidth: true
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              tezine Bruno Tezine
              Votes:
              10 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes