add QMainWindow for init