Switch to QMainWindow