Quote Originally Posted by anda_skoa View Post
Make sure you remove the Makefile and that the qmake of the new Qt version is run.
Your Makefile seems to still have Qt4 uic rules and those paths might no longer be valid.

Cheers,
_

Hi

The line with the unix path, was just a example of what is missing in the windows version of the Makefile.

It's strange, while I figure out what to do with this situation, I continue working on code migration from Qt 4 to 5; using
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0) in code (cpp and h files)
and
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets in the pri file

Suddenly, still a mistery for me, the ui header files were included in the Makefile, after running qmake.


My theory: When I get the QT section in pri file working for Qt 5, it allow to qmake to generate the ui headers, so, no problems to ~compile the project.

Right now, I'm dealing with the migration of some QUrl code to the new way, but apparently, it will continue working (compiling).

Question: the precompiler directives and qmake instructions I'm using, are the right way to include a conditional because the version change? Or, are there a better way?

Thanks