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

[BigSur] Button does not resize in function of its Text child anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.0.2
    • Quick: Controls 2
    • None
    • macOS BigSur x86_64
    • macOS

    Description

      Hello,

      After upgrading to Qt6 (from 5.15.2), I noticed that the following code does not render correctly on macOS BigSur:

      import QtQuick 2.15
      import QtQuick.Window 2.15
      import QtQuick.Controls 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Button {
              anchors.centerIn: parent
              Text {
                  anchors.centerIn: parent
                  text: "Hello, world!"
              }
          }
      }
      

      I attached a screenshot where you can see the wrong button rendering.

      I'm using QtCreator 4.15 beta1.

      Attachments

        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
            theodelrieu Théo Delrieu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes