Use QMainWindow instead of QWidget for the main window