Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6 WinMain/qtmain not available?
Forum Updated to NodeBB v4.3 + New Features

Qt6 WinMain/qtmain not available?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 2.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • adamsoltanA Offline
    adamsoltanA Offline
    adamsoltan
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • adamsoltanA Offline
      adamsoltanA Offline
      adamsoltan
      wrote on last edited by adamsoltan
      #2

      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.

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

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

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved