qml android full screen problem
-
phone: redmi
android version: android 10
qt version: qt 6.7my app screen orientation is landscape
the phone screen has safe areatop : 0 left : 28 bottom : 0 right : 0c++ code:
QObject::connect(p->screen, &QScreen::availableGeometryChanged, [&](const QRect &){ TIP_COUT << "availableGeometryChanged:" << p->screen->availableGeometry(); });qml code:
ApplicationWindow { minimumWidth: 1560 minimumHeight: 720 visibility: Qt.platform.os === "windows" ? Window.Minimized : Window.FullScreen ........ }app first start, output:
availableGeometryChanged: QRect(0,0 851x393)when i turn to main screen or drag down the notification drawer
screen size will changed, output:availableGeometryChanged: QRect(0,0 822x393)the witdh parameter minus left safe area value
how fix?