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

Buttons in DialogButtonBox loose text label under certain conditions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.13.1
    • Quick: Controls 2
    • None
    • Windows

    Description

      When adding more than one button to the DialogButtonBox with the Universal theme then the button labels disappear. With other themes (such as Material) this does not happen.

       

      import QtQuick 2.13
      import QtQuick.Window 2.13
      import QtQuick.Controls 2.10
      
      
      Page {
          id: page
          visible: true
          title: qsTr("Hello World")
      
          Button {
              anchors.centerIn: parent
              text: "Open dialog"
              onClicked: dialog.open()
          }
      
          Dialog {
              id: dialog
              parent: page
              modal: true
              closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
      
              x: (parent.width - width) / 2
              y: (parent.height - height) / 2
      
              title: "Test"
      
              Label {
                  text: "Test"
              }
      
              footer: DialogButtonBox {
                  Button {
                      text: "Btn 1"
                  }
                  Button { // Adding this button makes the text labels disappear
                      text: "Btn 1"
                  }
              }
          }
      }
      

      Attachments

        Issue Links

          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
              DanielSt Peter Staab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes