QDialog replaced with QMainForm