I have tried this, but I am using Qt 4.1.4, and my compiler gives me error:

[HTML]class QApplication' has no member named 'setMainWidget'[/HTML]

Is there any other way to disable maximize button?