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. Running a Qt 4 project in Qt 5.2
Qt 6.11 is out! See what's new in the release blog

Running a Qt 4 project in Qt 5.2

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.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.
  • S Offline
    S Offline
    SaME2014
    wrote on last edited by
    #1

    Hello,
    I was trying to run a Qt 4 project in my Qt 5 setup on windows and Creator is showing these errors:
    @
    :-1: warning: CONFIG+=uitools is deprecated. Use QT+=uitools instead.
    :-1: error: Unknown module(s) in QT: qaxcontainer phonon
    @

    Does this have smoething to do with the restructuring of modules in Qt 5? If so how do I get around this for my project to compile.
    Thank you for your time.
    Sam.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please see one of the numerous "porting guides":http://qt-project.org/doc/qt-5/portingguide.html. Yes, you do need to do some changes in order for your project to compile against Qt 5, but those are usually very minor changes.

      (Z(:^

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mtrch
        wrote on last edited by
        #3

        Replace qaxcontainer with axcontainer in your .pro file

        There is no phonon module in Qt 5.2 :( You should rewrite your code to use QtMultimedia & QtMultimediaWidgets modules. Also, Phonon is still available as independent library.

        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