Android Full Screen issue
-
I have an app that uses fullscreen by default. I want to restrict the app to only use the area between the System Notification Bar on top... and the Navigation Bar at the bottom.
I am using Qt 6.10
I've tried using various settings, as suggested by the interwebs... including this:
ApplicationWindow { id: mainWin // minimumWidth: Screen.width // minimumHeight: Screen.height visibility: Window.FullScreen //flags: Qt.ExpandedClientAreaHint | Qt.NoTitleBarBackgroundHint visible: true Rectangle { id: appRect anchors { left: parent.left; right: parent.right; top: parent.top; bottom: parent.bottom topMargin: 10 + parent.SafeArea.margins.top bottomMargin: 10 + parent.SafeArea.margins.bottom } } }
My issues:
-
My app has a SwipeView with 5 pages. When first starting the app in portrait, the SafeAreas are not honored 100%. The top of the app is placed at the bottom of the Header/Notification bar, but the bottom is under the Nav Bar. If I switch to landscape and back, then both Safe Areas are honored.
-
When switching to landscape, the left side (old top) is still spaced away from the edge... the top and bottom are at the new top and bottom... and the right side extends all the way to the right edge. However, if I swipe from the first page to the next (and on to each subsequent page)... I can see a portion of the old page in the 'unused' area on the left.
My app has data presented to the user that I do not want to be behind the 'camera hole'... and so need to force it to only use the area between the two System Bars.
Any suggestions?
--Sam -
-
seems we have to wait for 6.9.2 / 6.10Beta3: https://bugreports.qt.io/browse/QTBUG-135808
-
Nope... neither solution works.
Both still push the app 'full screen' and it ends up behind the status & navigation bars... when initially started up. Rotating to landscape and back, the app is as intended... limited in height to the status & nav bars.However, in landscape mode, I also still get the pages extending past the app edge...
-
seems we have to wait for 6.9.2 / 6.10Beta3: https://bugreports.qt.io/browse/QTBUG-135808
-
@ekkescorner , your post in another thread helped:
https://forum.qt.io/post/829606 -