PDA

View Full Version : Remove maximize button, why WidgetFlags doesn't work?



bood
31st July 2006, 09:41
Qt3+FC5 in main():

Window_Impl mainWindow(0, 0, Qt::WStyle_Customize|Qt::WStyle_Minimize);

but the maximize button is still there on the title bar

unless I use Qt::WStyle_Customize | Qt::WStyle_NoBorder, but this leads to a 'naked' window (no title bar, no border...)

Kumosan
1st August 2006, 09:26
Whether the WigetFlags work or not depends much on the windowmanager you use. I had to use kde, fvwm and WindowMaker. Same code, totally different window decorations. Nothing much you can do about.

sumsin
1st August 2006, 10:23
use setFixedSize() function