Window {
visible: true
modality: Qt.ApplicationModal
flags: Qt.FramelessWindowHint | Qt.Window
width: Screen.width + 1
height: Screen.height + 1
}
本文介绍了一种实现无边框全屏窗口的方法,通过设置窗口的可见性、模态性和标志,使得窗口宽度和高度超过屏幕尺寸,达到全屏效果。
Window {
visible: true
modality: Qt.ApplicationModal
flags: Qt.FramelessWindowHint | Qt.Window
width: Screen.width + 1
height: Screen.height + 1
}
1466