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

QML MessageDialog is scaled to full screen (resize parent window)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P4: Low P4: Low
    • None
    • 5.5.0 Alpha, 5.5.0 Beta, 5.5.0 RC, 5.5.0, 5.5.1
    • Quick: Dialogs
    • None
    • embedded linux (webOS)

      In platforms that do not support multiple windows, current implementation of
      dynamically created dialogs is incorrect.
      Consider following situation.
      We have simple code like below. When we run it on embedded linux,
      the parent window is resized to MessageBox size

      import QtQuick 2.2
      
      Rectangle {
          id: mainWindow
          width: 360
          height: 360
          Text {
              text: qsTr("Dialog Test")
              anchors.centerIn: parent
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  var dialog = Qt.createQmlObject('\
                  import QtQuick 2.0
                  import QtQuick.Controls 1.1
                  import QtQuick.Dialogs 1.1
                  import QtQuick.Window 2.1
                  MessageDialog {
                      id: rootDialog
                      width: 200
                      height: 100
                      Rectangle {
                          id: mainRect
                          focus: rootDialog.visible
                          Text {
                              text: "Dialog"
                              anchors.centerIn: parent
                          }
                      }
      
                  }', mainWindow, "rootDialog");
                  dialog.open();
              }
          }
      }
      

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

            srutledg Shawn Rutledge
            alexey.turitsyn Alexey Turitsyn
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: