Details
-
Technical task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
None
-
16023fc77 (dev)
Description
- Currently limited to top level windows
- Not a QQuickItem
- Allows assigning transient parent
- Automatic transient parent based on QML document parent
- Not what QWindow does normally
- Deferred visibility if window has automatic transient parent
- Not what QWindow does normally
- Magic transient parent is applied synchronously at various locations
- QQuickItemPrivate::QQuickItemPrivate()
- qquickitem_autoParent
- QQuickLoaderPrivate::incubatorStateChanged
- QQuickWindowPrivate::data_append
- QQuickWindow::setTransientParent_helper
- This is meant to cover all the various ways a Window can be created
- All of them fail to check QWindowPrivate::transientParentPropertySet, so the use-case described in https://doc.qt.io/qt-6/qml-qtquick-window.html about setting the transient parent to null is currently broken
- Changes
- https://codereview.qt-project.org/c/qt/qtdeclarative/+/52392
- https://codereview.qt-project.org/c/qt/qtdeclarative/+/79614
- https://codereview.qt-project.org/c/qt/qtdeclarative/+/240849
- https://codereview.qt-project.org/c/qt/qtdeclarative/+/104477
- https://codereview.qt-project.org/c/qt/qtdeclarative/+/214243
- Automatic transient parent based on QML document parent
- Window item is a QQuickWindowQmlImpl
- Inherits QQuickWindow
- Other subclasses of QQuickWindow
- E.g. QQuickView
- Can't rely on QQuickWindowQmlImpl for managing child windows, as container window might be a QQuickView
Attachments
Issue Links
- resulted in
-
QTBUG-117940 Window attached property does not return stable reference
- Reported