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

Repeatedly exec'ing a QDialog causes the dialog to resize/move

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.3
    • None
    • I'm using Windows 10, 64 bit
    • Windows

    Description

      If a QDialog is repeatedly executed (using QDialog::exec()) the dialog will change size and/or move its position. I've attached a couple screenshots and a minimal example application that illustrates this issue. To duplicate:

      1. Unzip and compile the attached project inside qdialogMoves.zip
      2. Launch application and press the Show Dialog button (screenshot below shows the result the first time the button is pressed)
        1. Observe size and location of initial dialog
        2. Close dialog using the 'X' in the upper right corner
      3. Repeat step #2 multiple times, observing how the dialog changes its size/position. Screenshot below shows after the 21st time:

      At no point am I intentionally resizing the dialog - neither via the mouse nor programmatically using resize() for example.

      I've also attached a video showing the behavior in real time.

      Attachments

        1. 21execs.webm
          918 kB
        2. 21stShowing.png
          21stShowing.png
          10 kB
        3. firstShowing.png
          firstShowing.png
          9 kB
        4. qdialogMoves.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            smurphy Sean Murphy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes