Add workaround for QTBUG-64994

This commit is contained in:
Alex Spataru 2021-11-09 17:54:27 -06:00
parent 050190100e
commit 39ab87eee6
2 changed files with 3 additions and 1 deletions

View File

@ -156,6 +156,8 @@ Rectangle {
enabled: root.minimizeEnabled && !root.fullScreen
visible: root.minimizeEnabled && !root.fullScreen
onClicked: {
// Workaround for QTBUG-64994
window.flags = Qt.Window | Qt.CustomizeWindowHint | Qt.WindowMinMaxButtonsHint
window.showMinimized()
root.minimized()
}

View File

@ -142,7 +142,7 @@ FramelessWindow.CustomWindow {
// Window geometry (different minimum size for non-macOS
// operating systems because of the global menubar in macOS)
//
visible: true
visible: false
title: Cpp_AppName
width: minimumWidth
height: minimumHeight