Upgrade from 4.5.2 to 5.1 problems !
-
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 -
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
-
"With a little search":http://bit.ly/15afpUz