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

[REG 4->5] Windows: Having winId inited for widgets creates very weird dialog positioning policy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.2
    • 5.3.0
    • None
    • Windows 7 x64
    • a71e285133087714034f3c84a758980c85b3801e (5.3. branch, 18.7.2014, 5.3.2)

    Description

      My bug is probably very similar to this one:
      https://bugreports.qt-project.org/browse/QTBUG-30181

      But I would like to point out why this issue is more serious than it seems and give a bit clearer example perhaps.

      The problem description - if I create an instance of QDialog which has some layout and some substantial minimal size and also which parent is QWidget that somehow obtained winid then dialog positioning is messed up.

      At first I though that obtaining winId is a merely question of winId() method usage but when I removed all of it's usages the issue still persisted because widget in question (which serves as parent to dialog) also contains QGLWidget which enforces winid creation for all of it's parents on windows and this actually leads to the very same effect.

      I think this issue is important because it's origin is very unclear to me and I see no valid workarounds.

      Steps to reproduce:

      • Show dialog parented on native widget
      • Actual: dialog appears at 0,0 (content position)
      • Expected: dialog is centered on top level

      Attachments

        1. application.zip
          0.8 kB
        2. qtbug40195.zip
          2 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              predelnik Sergey Semushin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes