Thanks for your quick reply......Actually i forgot to mention that i need to remove the maximize and minimize options from a QMainwindow's title bar and not from a dialog. As per our application, after a login screen, mainwindow needs to be shown. If i use WTYPE_DIALOG flag in the mainwindow's constructor, the Mainwindow is not being shown at all. If i dont use this flag, by default WTYPE_TOPLEVEL flag will be considred and Mainwindow will be shown with max and min options. So, i am stuck here. So,please help me out.
Thanks in advance.