import QtQuick import QtQuick.Controls Window { // exchange Window and ApplicationWindow, and after rotating left and right only ApplicationWindow fixes itself... Window will stay faulty id: root visible: true flags: Qt.ExpandedClientAreaHint | Qt.NoTitleBarBackgroundHint color: "red" Rectangle { id: textRect color: "blue" //anchors.fill: parent anchors.top: parent.top anchors.topMargin: SafeArea.margins.top anchors.left: parent.left anchors.leftMargin: SafeArea.margins.left anchors.right: parent.right anchors.rightMargin: SafeArea.margins.right anchors.bottom: parent.bottom anchors.bottomMargin: SafeArea.margins.bottom Text { id: safeAreaText anchors.centerIn: parent text: "Safe Area Margins\nTop: "+root.SafeArea.margins.top+" Left: " +root.SafeArea.margins.left+"\nRight: " +root.SafeArea.margins.right+" Bottom: " +root.SafeArea.margins.bottom } // safeAreaText } // textRect } // root