Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
6.7.2, 6.7.3, 6.8.0
-
None
Description
WindowContainer is always the top-level item in a QML scene, even tho it shouldn't be.
I tested all kinds of variations of Z value for different items, different window flags to no avail.
Simple repo case attached.
Ping: vestbo
import QtQuick import QtQuick.Controls import QtQuick.Window Window { id: root visible: true width: 800 height: 600 title: qsTr("WindowContainer test") Rectangle { width: parent.width anchors.top: parent.top height: 100 color: "purple" z: 100 Text { anchors.centerIn: parent font.pixelSize: 24 text: "MY AWESOME TOP BAR" color: "white" } } ScrollView { ScrollBar.vertical.policy: ScrollBar.AlwaysOn anchors.fill: parent clip: true Column { width: 500 Repeater { model: 4 Rectangle { width: parent.width height: 200 color: "pink" Rectangle { anchors.bottom: parent.bottom width: parent.width height: 5 color: "black" } } } Item { width: 500 height: 300 WindowContainer { id: webView anchors.fill: parent window: Window { flags: Qt.WindowTransparentForInput | Qt.FramelessWindowHint color: "lightgray" Image { source: "https://placedog.net/500/500?random" anchors.fill: parent } } } } Repeater { model: 4 Rectangle { width: parent.width height: 200 color: "red" Rectangle { anchors.bottom: parent.bottom width: parent.width height: 5 color: "black" } } } } } }