choose qt4 or qt5 automatically