I am using KDE 3.3.1 with Plastique Theme, See the screen shot. The maximize button is still there
We can't solve problems by using the same kind of thinking we used when we created them
Thank you, ucomesdag! Is there way to make it disappear completely?
You can set same maximum and minimum size As.
MainForm *MainFormObj=new MainForm(0);
MainFormObj->show();
MainFormObj->setMaximumSize (849,626);
MainFormObj->setMinimumSize (849,626);
I think it will work.I m using this on my mac using qt 4.2.2.
Tried it. It doesn't work on WinXP.
what is Happening when you r doing this.
Is there is an error?
Actually I am running it correctly and donot know why it is not working in XP.
check one thing that U also set the geometry of main window as
MainForm *MainFormObj=new MainForm(0);
MainFormObj->show();
MainFormObj->setMaximumSize (849,626);
MainFormObj->setMinimumSize (849,626);
MainFormObj->setGeometry(5,42,849,626); //add this line
Try this.
Last edited by vishal.chauhan; 10th January 2007 at 12:52. Reason: updated contents
Hi Sunil.thaha,
How did you solve the above problem? Could you manage to make the maximize button disappeared?
Regards,
~NM
Read about Qt::WindowFlags
hi,
Those flags are not working properly. those working fine on windows but not on Mac. Even I am not being able to have close button on mac.
I hv posted my code here. http://www.qtcentre.org/threads/2990...063#post140063
thanks anyway.
check this example
http://doc.qt.io/qt-5/qtwidgets-widg...s-example.html
you should use
qt::window | qt::windowminimizebuttonhint | qt::closebuttonhint | qt::customizewindowhint
you can not remove the maximize button without the customizewindowhint
Bookmarks