PDA

View Full Version : Maximize Window button of Manin Window



sabeesh
1st August 2007, 07:56
Hi,
I have a QMainWindow. I want to disable the resize button ( Maximize Window button ) of the main window. How can i do this.

marcel
1st August 2007, 08:20
Try this in the constructor of your window:


setWindowFlags(Qt::Window | Qt::WindowMinimizeButtonHint);


This will disable the maximize button. At least in 4.3 it does.

Regards