Pass some other QWidget as the first argument to the constructor of myQtApp.
e.g not myQtApp but myQtApp(this).