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

Window attached property does not return stable reference

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              vestbo Tor Arne Vestbø
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes