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;