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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes