qmake - Forcing specific version of QT in .pro file -


i'm searching way force specific version of qt in .pro file. more specific, i'd force qmake use qt 5.x version project instead of qt 4.x , qt 5.x

is there way so?

ps: i'm not asking way stop/halt compile process (aka check qt version, , if lower 5.x throw qfatal/equivalent). i'm looking way choose version use while generating makefile qmake

you can throw error if user running qmake version not want him use. ex:

lessthan(qt_major_version, 5): error("requires qt 5") 

Comments