Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Upgrade from 4.5.2 to 5.1 problems !
Forum Updated to NodeBB v4.3 + New Features

Upgrade from 4.5.2 to 5.1 problems !

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 1.4k 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.
  • M Offline
    M Offline
    mami_eid
    wrote on last edited by
    #1

    Hello =)

    I’ve just upgraded from Qt 4.5.2 to 5.1 . When I try to build my project I got a lot of compiler errors due to missed include files and libraries.

    I opened my old project using Qt 5.1 creator and configured it but can't build due to the compiler errors.

    Is there any way to upgrade my project to Qt 5.1 automatically without changing all the includes list ?

    My project is desktop application by C++ with UI and run on Windows 7 - 64 bits.

    thanks,
    Mohamed Ibrahim

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You are probably experiencing the QtGui -> QtWidgets transition problem.

      You need to add
      @QT += widgets@

      to your pro file.

      If you used to

      @#include <QtGui/QWidget>@

      You will either have to convert them to QtWidget or remove QtGui
      IIRC, there are some scripts to help you with that.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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

        Thanks for your reply,

        But how can i find the mentioned scripts to help me in this conversions ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          "With a little search":http://bit.ly/15afpUz

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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