fixed test if QT is installed