From 81f2f8781a74197411d69808aa25555b4677235b Mon Sep 17 00:00:00 2001 From: fourtf Date: Thu, 9 Aug 2018 15:13:11 +0200 Subject: [PATCH] fixed window frame for qt 5.11.1 --- src/widgets/BaseWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/BaseWindow.cpp b/src/widgets/BaseWindow.cpp index db9bd077..eccde0f9 100644 --- a/src/widgets/BaseWindow.cpp +++ b/src/widgets/BaseWindow.cpp @@ -459,7 +459,11 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *result) { #ifdef USEWINSDK +#if (QT_VERSION == QT_VERSION_CHECK(5, 11, 1)) + MSG *msg = *reinterpret_cast(message); +#else MSG *msg = reinterpret_cast(message); +#endif bool returnValue = false;