Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Upgrading old application from QT4 to QT6 some librarys seem to be removed?
Forum Updated to NodeBB v4.3 + New Features

Upgrading old application from QT4 to QT6 some librarys seem to be removed?

Scheduled Pinned Locked Moved Unsolved Qt 6
3 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    zeux 0
    wrote on last edited by
    #1

    Hello everyone I am having a little bit of trouble upgrading to QT6 from QT4, I cant seem to figure out what happened to things like qtmain were these removed? this is a screenshot of my linker 31a09112-b0a1-4eae-a109-a67674ebf88f-image.png

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

      Porting directly from Qt4 to Qt6 is not that easy. Maybe you should port to Qt5.15 first and then to Qt6. When you use qmake or cmake you don't have to take care for qtmain. With QtWebKit you will have no luck - this was replaced by QtWebEngine.

      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
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Note the 4 in your lib's names. You'll need to migrate them first so QtGui4.lib -> Qt6Gui.lib and so on.
        qtmain.lib is now called Qt6EntryPoint.lib

        QtWebkit, as Christian mentioned, is no longer part of Qt and was replaced by QtWebEngine.

        1 Reply Last reply
        1

        • Login

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