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

QDialog don't display in the middle of the parent window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.2.1
    • GUI: Window management
    • None
    • OS X 10.8.5+QT5.2.1+Xcode 5
    • macOS

    Description

      I create two QMessageBox(QDialog as the same).One of them has a parent.

      QMessageBox msgWithParent(this);
      msgWithParent.setText("msgWithParent");
      msgWithParent.exec();

      QMessageBox msgWithoutParent;
      msgWithoutParent.setText("msgWithoutParent");
      msgWithoutParent.exec();

      But when I run the application,both of the two dialog display in the middle of the screen.

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              anyetiangong liyu
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes