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

[Regr: 6.4->6.5] TextField's height is too large when using Material style

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.5.3, 6.6.1
    • Quick: Controls 2
    • Windows 10, Visual C++ 2022
    • Linux/Wayland, Windows

    Description

      When I activate Material style (using QQuickStyle::setStyle("Material")), TextField's height increases from 45 in Qt 6.4.3 to 56 in Qt 6.5.3 and 6.6.1.

       

      import QtQuick
      import QtQuick.Window
      import QtQuick.Controls
      
      Window {
          width: 250
          height: 200
          visible: true    
          
          Column
          {
              anchors.centerIn: parent
              spacing: 30        
              
              TextField
              {
                  id: tf
                  text: "TEST"
              }       
       
              Label
              {
                  text: "TextField's height = " + tf.height
              }
          }
      } 

       

       

      Attachments

        1. default_qt6_4_3.png
          default_qt6_4_3.png
          4 kB
        2. default_qt6_6_1.png
          default_qt6_6_1.png
          4 kB
        3. material_qt6_4_3.png
          material_qt6_4_3.png
          4 kB
        4. material_qt6_6_1.png
          material_qt6_6_1.png
          4 kB

        Issue Links

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

          Activity

            People

              edcooke Ed Cooke
              alervd Alexander Dyagilev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes