Fullscreen issue
Unsolved
QML and Qt Quick
-
I'm trying to do fullscreen window but it's not working tried below code in application window
if (ScreenTools.isMobile || Screen.height / ScreenTools.realPixelDensity < 120) {
mainWindow.showFullScreen()
} else {
//window.showFullScreen()width = ScreenTools.isMobile ? Screen.width : Math.min(250 * Screen.pixelDensity, Screen.width) height = ScreenTools.isMobile ? Screen.height : Math.min(150 * Screen.pixelDensity, Screen.height) Window.showFullScreen() x = Screen.width / 2 - width / 2 y = Screen.height / 2 - height / 2 }
-
Try Window.resize( width, height );
showFullScreen may not work sometimes. Check this out: https://doc.qt.io/qt-5/qwidget.html#showFullScreen