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

QDialog.resize() also moves it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.3
    • 4.6.0
    • None
    • None
    • 6d44daddab9f36fd8c34bb3776c0fb0d93635e6e

    Description

      When QDialog.resize() is called then QDialog is also moved. Apparently it's moved adjacent to the cba's (command button area, soft key area) top edge. This is wrong behavior. Resizing should only resize - not move.

      Attached is a test application that can be used to reproduce the situation. Click on the dialog and the correct behavior is that on mousebuttonpress the dialog shrinks by 1 pixel both in x and y directions. However, the widget also moves.

      In the application There's a maximized parent widget and a child dialog widget. Both are windows. When the child is clicked then in an object event filter the mousebuttonpress event is caught and the widget is resized 1 pixel less wide and high. This causes the widget also to move.

      Tried the application also in Qt SDK 2009.03 in WindowsXP where it worked correctly.

      Attachments

        1. afterresize.png
          afterresize.png
          148 kB
        2. beforeresize.png
          beforeresize.png
          147 kB
        3. dlgresize.zip
          0.8 kB

        Issue Links

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

          Activity

            People

              e0101981 Janne Anttila
              suistoma Jussi Suistomaa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes