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

Dialog with layout moves everytime it is opened (Windows)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.5.1
    • 5.5.0
    • None
    • Windows 7, MSVC 2013
    •  6468cf4e79cca74fa3704c1a1c03fc5da3778416 (qtbase/5.5, 6.6.2015, 5.5.1)

      Every time I open a dialog, it is shown in a sligtly different position than the one where it was when it was previously closed.

      The problem seems to happen when the Dialog has a layout and it is resized when it is created.

      Attached is a small example demonstrating the issue. Click on "Open Dialog" to open a dialog. Close it. Click the button again. The new dialog position is not the previous position. Do it multiple times, the dialog will move every time it is opened.
      Click "Open Dialog Loop" to automatically open and close the dialog multiple times, you should clearly see the dialog moving (see attached animation).

      I can reproduce this issue on Windows.

        1. qtbug47109.zip
          2 kB
        2. qtbug47109_move_stack.txt
          11 kB
        3. qtbug47109_diag.diff
          0.5 kB
        4. mainwindow_test.zip
          1 kB
        5. animation.gif
          animation.gif
          431 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            mauceri Calogero Mauceri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes