Replaced QtGui/QApplication by QApplication