[Solved] Add an extern function to qguiapplication.cpp
-
Hi all,
I've a strange behaviour compiling Qt with a changed qguiapplication.cpp.
I've added the following code to the file:
#if defined(Q_OS_WIN) bool gHandlingEnabled = false; extern "C" __declspec(dllexport) void __stdcall setHandling(bool aEnable) { gHandlingEnabled = aEnable; } #endif // Q_OS_WINMy problem is that the function setHandling isn't available in Qt5Gui.dll after the build.
If I don't use the #ifdef section the function is available. What's the matter with Q_OS_WIN? Do I need to include qsystemdetection.h?
Kind regards,
MikeEDIT: Solved - yes it was the missing include of qsystemdetection.h