PDA

View Full Version : How do i remove maximize and minimize options from widgets



bera82
25th March 2006, 06:07
hi,
I am using QT 3.3 and i need to remove the maximize and minimize options from the upper right corner on the title bar in the widgets that i am using.

Please help me out!!
Thank you,
Regards,
Bera.

munna
25th March 2006, 06:39
set Qt::WType_Dialog flag in the constructor

bera82
25th March 2006, 07:13
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.

munna
25th March 2006, 07:15
try

Qt::WTYPE_TOPLEVEL | Qt::WType_Dialog