Not needed save app, you can use qApp(QApplication) global variable.