From 34523bb83651ae009d28748d64697eb8ade9a639 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 22 Nov 2013 13:28:22 +0100 Subject: Set more window flags to keep Windows from omitting titlebar & buttons This should not be necessary, but Windows does not treat the missing Qt::CustomizeWindowHint the same as the other platforms do. Task-number: QTBUG-35049 Change-Id: I81dc645dc1acf29b6ff4d5fc04f5dd3db94b0133 Reviewed-by: Friedemann Kleint --- src/controls/ApplicationWindow.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/controls/ApplicationWindow.qml b/src/controls/ApplicationWindow.qml index 850212fa..6e0160df 100644 --- a/src/controls/ApplicationWindow.qml +++ b/src/controls/ApplicationWindow.qml @@ -126,6 +126,12 @@ Window { color: syspal.window + flags: Qt.Window | Qt.WindowFullscreenButtonHint | + Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | + Qt.WindowCloseButtonHint | Qt.WindowFullscreenButtonHint + // QTBUG-35049: Windows is removing features we didn't ask for, even though Qt::CustomizeWindowHint is not set + // Otherwise Qt.Window | Qt.WindowFullscreenButtonHint would be enough + SystemPalette {id: syspal} Item { -- cgit v1.2.1