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

Dialog not calculate height for button box if it hasn't enough buttons in right row

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.0 RC
    • 5.4.2, 5.5.1, 5.6.0 Alpha
    • Quick: Dialogs
    • None
    • Mageia Linux Cauldron x86_64, Plasma 5.
    • f622e60c3d68bfe6eb2f73201fc4f451ab6c2dc7

      If dialog has less than 2 buttons in the right row, it doesn't calculate height for button box, resulting in a incorrect left buttons position.

      Program to reproduce:

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      import QtQuick.Dialogs 1.2
      
      ApplicationWindow {
          visible: true
          width: 400
          height: 300
      
          Dialog {
              id: testDialog
      
              standardButtons: StandardButton.Ok | StandardButton.Reset
      
              Rectangle {
                  width: 200
                  height: 200
                  color: "lightblue"
                  border {
                      color: "red"
                      width: 1
                  }
              }
          }
      
          Button {
              anchors.centerIn: parent
              text: "Show dialog"
      
              onClicked: testDialog.open()
          }
      }
      

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

            srutledg Shawn Rutledge
            krnekit Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes