parent set for QMainWindow