Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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 component Qt6::WinMain I 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.



  • Okay, for some reason there is still a WinMain defined by Qt, in some mysterious qtentrypoint_win.cpp which must be a part of Qt6::Core, Qt6::Gui, or Qt6::Widgets because I'm not linking to anything else. So my question now is how do I remove it if I needed to?


  • Lifetime Qt Champion

    There is no need to explicitly link against Qt6::WinMain (and is also not needed for Qt5)


Log in to reply