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. How do I transfer a project from Qt5 to Qt6?
Forum Updated to NodeBB v4.3 + New Features

How do I transfer a project from Qt5 to Qt6?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 943 Views 2 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.
  • B Offline
    B Offline
    Blackzero
    wrote on last edited by
    #1

    I bought a new laptop and downloaded the latest version of qt creator but the problem is that qt creator is already Qt6 while my project is still Qt5, when I tried to run it an error occurred.

    :-1: error: Unknown module(s) in QT: script
    

    How to do it, do I have to make everything again?

    Pl45m4P 1 Reply Last reply
    0
    • B Blackzero

      I bought a new laptop and downloaded the latest version of qt creator but the problem is that qt creator is already Qt6 while my project is still Qt5, when I tried to run it an error occurred.

      :-1: error: Unknown module(s) in QT: script
      

      How to do it, do I have to make everything again?

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Blackzero said in How do I transfer a project from Qt5 to Qt6?:

      How to do it, do I have to make everything again?

      The script module was removed from Qt Framework with Qt6 and it was in Qt5 also only for compatibility reasons to Qt4...

      • https://doc.qt.io/qt-5/qtscript-index.html

      For alternatives, see here.
      It might require some rework of your app.

      Btw: You could have checked it before you decided to use the Qt Script module which was at its end of life already.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      B 1 Reply Last reply
      2
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Blackzero What @Pl45m4 wrote is correct, but do you need to port your app to Qt 6 now?

        Even when Creator is built with Qt 6, that does not mean you cannot develop Qt 5 (or even 4) apps with it.

        That may give you some time to do proper porting to one of the script alternatives.

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        0
        • Pl45m4P Pl45m4

          @Blackzero said in How do I transfer a project from Qt5 to Qt6?:

          How to do it, do I have to make everything again?

          The script module was removed from Qt Framework with Qt6 and it was in Qt5 also only for compatibility reasons to Qt4...

          • https://doc.qt.io/qt-5/qtscript-index.html

          For alternatives, see here.
          It might require some rework of your app.

          Btw: You could have checked it before you decided to use the Qt Script module which was at its end of life already.

          B Offline
          B Offline
          Blackzero
          wrote on last edited by
          #4

          @Pl45m4 said in How do I transfer a project from Qt5 to Qt6?:

          It might require some rework of your app.

          It's not like I'm moving to Qt6 because I have a lot of code to fix, what's so special about Qt6?

          C Pl45m4P 2 Replies Last reply
          0
          • B Blackzero

            @Pl45m4 said in How do I transfer a project from Qt5 to Qt6?:

            It might require some rework of your app.

            It's not like I'm moving to Qt6 because I have a lot of code to fix, what's so special about Qt6?

            C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @Blackzero said in How do I transfer a project from Qt5 to Qt6?:

            what's so special about Qt6?

            Being actively supported and having a future. Qt 5.15 is in extended support for commercial customers until May 2025.

            That does not mean your existing code will suddenly stop working but you will need to keep your own copies of Qt libraries you use.

            1 Reply Last reply
            0
            • B Blackzero

              @Pl45m4 said in How do I transfer a project from Qt5 to Qt6?:

              It might require some rework of your app.

              It's not like I'm moving to Qt6 because I have a lot of code to fix, what's so special about Qt6?

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote on last edited by
              #6

              @Blackzero said in How do I transfer a project from Qt5 to Qt6?:

              what's so special about Qt6?

              Nothing... just a new software release... new features were added, old/unused/outdated things got removed... "Progress".
              For the same reason you are not using Windows 98 right now, and won't be able to run the latest software on ancient systems.

              because I have a lot of code to fix

              Could have been easily avoided if you had a look at the documentation page of the Qt Script Module. The warning that the only reason why the module is still there at all - which is compatibility with Qt4 - has been there since an early Qt5.
              It wasn't even recommeded to use in Qt5... You started with Qt5 and should have used the replacements right away.


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              2

              • Login

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