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

Window attached property does not return stable reference

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.6
    • Quick: Other
    • None
    • All

      The Qt Quick Window attached property for an Item is initially null. It only starts reflecting a Window once the Item is placed into a Window. This is problematic for logic that tries to distinguish foo: null from foo: bar.Window.window, for example the Window.transientParent property.

      This is not a problem if assigning a Window { id: bar } directly as foo: bar

      Nor is it a problem for APIs that allow you to assign an Item to a "window" property by implicitly using the Item as a stable reference to the window.

       

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

            vestbo Tor Arne Vestbø
            vestbo Tor Arne Vestbø
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes