change window from QWidget to QMainWindow