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

DialogButtonBox align to right incorrectly when using a single standard button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12.0
    • None
    • Windows 10 1809
      Qt 5.12.0 MinGW-64bit
    • Windows

      When I using a single Dialog's standard button with Universal style, the button can't align correctly. Actually it is beyond the bound of the dialog. Test code and screenshot as follow. And when using Material style, it perform as expected.

      import QtQuick 2.7
      import QtQuick.Controls 2.5
      import QtQuick.Window 2.2
      
      ApplicationWindow {
          id: window
          visible: true
          width: 640
          height: 480
          title: qsTr("Stack")
      
          Dialog {
              id: dialog
              title: qsTr("About")
              modal: true
              focus: true
              visible: true
              width: 400
              standardButtons: Dialog.Ok
          }
      }
      

        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
            xnhw01 浩文 陈
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes