Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt6 WinMain/qtmain not available?
adamsoltan last edited by
I just switched my project (that uses CMake) from Qt5 to Qt6. After failing to find or link to the component
Qt6::WinMainI checked the lib folder and realized that there is no
qtmain.lib. Was it removed or is it just an oversight? (Qt 6.0.0 MSVC 2019 64-bit)
Thanks in advance.
adamsoltan last edited by adamsoltan
Okay, for some reason there is still a
WinMaindefined by Qt, in some mysterious
qtentrypoint_win.cppwhich must be a part of
Qt6::Widgetsbecause I'm not linking to anything else. So my question now is how do I remove it if I needed to?
There is no need to explicitly link against Qt6::WinMain (and is also not needed for Qt5)