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

setParent regression for windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.0 Beta 1
    • 5.0.2
    • Widgets: Main Window
    • None
    • Windows 64 bit, Qt 32 bit
    • 38608486744cbecafb63c0609635102a1671fe8d (Windows: Update transient parent in show(), 24.4.2013)

    Description

      See attached sample. Under 4.8.3, this program works correctly, that is, if you click in the window "Child", this window will be "reparented" to "Parent 1".
      Or, as a second test case, if you change "new TChild(window2, window)"
      for "new TChild(window2, 0)" then the Child window will become free of any parent window.

      But in Qt 5.0.2, the same sample has no effect: the Child window remains locked to "Parent 2" in all cases. It becomes impossible to reparent any floating window
      I could not find a fix inside Qt code, but as an hint, if you uncomment the line SetWindowLongPtr... then the program works correctly...

      Attachments

        1. main.cpp
          1 kB
          user-04d21
        2. qtbug30707.zip
          2 kB
          Friedemann Kleint

        Issue Links

          Activity

            People

              kleint Friedemann Kleint
              jirauser26727 user-04d21 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: