add code for makingf qdialog / qmainwindow unresizable.