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

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

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

       

       

        1. default_qt6_4_3.png
          4 kB
          Alexander Dyagilev
        2. default_qt6_6_1.png
          4 kB
          Alexander Dyagilev
        3. material_qt6_4_3.png
          4 kB
          Alexander Dyagilev
        4. material_qt6_6_1.png
          4 kB
          Alexander Dyagilev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            edcooke Ed Cooke (Inactive)
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes