Query QT_VERSION instead of using qmake -v