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

QWindowContainer does not handle QEvent::WinIdChange of its parent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.0.0, 5.1.0 , 5.2.0, 5.3.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      QWidget::createWindowContainer() can create a QWindowContainer object which embed a native window to an existing QWidget.
      However, according to the design, the native WId of the parent widget may be changed at runtime. So when this happen, QWindowContainer should reparent the embedded native window automatically otherwise things will be broken.
      This does not work with the XCB backend which uses XEMBED.
      Please note that it's not possible for application developers to handle this ourselves since when QEvent::WinIdChange happen, the old window is already destroyed and we have no chance to unparent the embedded window before that.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              paeglis Gatis Paeglis
              Reporter:
              pcman Hong Jen Yee
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes