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

Buttons in DialogButtonBox loose text label under certain conditions

XMLWordPrintable

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

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

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes