Running a Qt 4 project in Qt 5.2

  • 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.

  • Moderators

    Please see one of the numerous "porting guides": 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.

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.