Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.2.11, 6.5.5-1, 6.7.0 RC
-
None
Description
ApplicationWindow inherits Window which instantiates QQuickWindow. It is surprising/unintuitive that ApplicationWindow.contentItem != QQuickWindow::contentItem() (e.g. QTBUG-122286 resulted from this surprise/misunderstanding)
Furthermore, consider this code which demonstrates more surprises by the current API:
import QtQuick import QtQuick.Controls.Basic ApplicationWindow { // Change "ApplicationWindow" -> "Window" for investigation id: window width: 640 height: 480 visible: true TextEdit { anchors.centerIn: parent text: "window.contentItem: " + window.contentItem + '\n' // Regular property + "Window.contentItem: " + Window.contentItem // Attached property } }
Example Window output (makes sense):
window.contentItem: QQuickRootItem(0x1bed8500d20) Window.contentItem: QQuickRootItem(0x1bed8500d20)
Example ApplicationWindow output (surprising):
window.contentItem: QQuickContentItem(0x155dafb9250, "Main") Window.contentItem: QQuickRootItem(0x155dafb9850)
Attachments
Issue Links
- replaces
-
QTBUG-122286 Overlay and Drawer edges should follow content item rotation in ApplicationWindow also
- Closed