Qt6 WinMain/qtmain not available?
-
Hi,
I just switched my project (that uses CMake) from Qt5 to Qt6. After failing to find or link to the componentQt6::WinMainI checked the lib folder and realized that there is noqtmain.lib. Was it removed or is it just an oversight? (Qt 6.0.0 MSVC 2019 64-bit)Thanks in advance.
-
Okay, for some reason there is still a
WinMaindefined by Qt, in some mysteriousqtentrypoint_win.cppwhich must be a part ofQt6::Core,Qt6::Gui, orQt6::Widgetsbecause I'm not linking to anything else. -
There is no need to explicitly link against Qt6::WinMain (and is also not needed for Qt5)