[Qt-interest] how to remove maximize button in Mac OS X tool window

Andy Brice andy at oryxdigital.com
Wed Jan 13 15:41:49 CET 2010


I have a floating tool window. It works fine on Windows, but I can't get 
rid of the maximise button on Mac OS X. I have tried unsetting 
Qt::WindowMaximizeButtonHint  and setting the window to fixed size. 
Nothing seems to work.

MyWidget::MyWidget( QWidget* parent )
:QWidget( parent, Qt::Tool | Qt::CustomizeWindowHint )
{
   setupUi( this );
 
   setFixedSize( sizeHint() );
   setWindowFlags( windowFlags() & ~Qt::WindowMaximizeButtonHint );
}

Any ideas? I am using Qt 4.4.

best regards

Andy Brice
http://www.perfecttableplan.com
http://www.successfulsoftware.net




More information about the Qt-interest-old mailing list