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

Abhishek Patil abhishekworld at gmail.com
Wed Jan 13 19:03:18 CET 2010


Hi
try using this->setWindowFlags(Qt::FramelessWindowHint) in MyWidget 
constructor .

Andy Brice wrote:
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>   


-- 
Abhishek Patil | http://thezeroth.wordpress.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100113/0b9a31fe/attachment.html 


More information about the Qt-interest-old mailing list