from Qt 4.8 to Qt 5.5.1 ?
I'm trying my project developped on version 4.8 to the latest 5.5.1.
It seems to be some problem related may be to the path to find libraries or something like that.
Creating a brand new project, no problem occurs.
What is the problem?
The first thing you are probably missing is:
QT += widgetsin your .pro file. You can copy the lines from your brand new project so you can still build with both version of Qt.
the following are the head lines of my .pro file:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = ts400
TEMPLATE = app
SOURCES += main.cpp
(continues with the list of source files)
Then what errors are you getting now ?
Error in "ui[myproj].h: No such file or directory (referring to #include <QtGui/QAction> and all other included file, I suppose)
Rerun qmake and rebuild your project
Found a first solution.
Replacing part of path of included file (#include <QtWidgets/QLabel> instead of #include <QtGui/QLabel>, for example), building passes and found some further errors.
Probably this comes from all differences made from two different Qt releases(as 4.8.6.and 5.5.1)
It's because the widgets have their own module in Qt 5.
The recommended way: remove the module part of your includes so you can build with both series of Qt if needed.