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

Andy Brice andy at oryxdigital.com
Thu Jan 14 14:55:08 CET 2010


Richard wrote:
> : QWidget(parent,
>       Qt::Tool |
>       Qt::WindowTitleHint |
>       Qt::WindowCloseButtonHint |
>       Qt::CustomizeWindowHint)
>   
Hi Richard,

WindowCloseButtonHint appears not to exist in Qt 4.4.:

TPMagnificationDlgImpl.cpp:15: error: ‘WindowCloseButtonHint’ is not a 
member of ‘Qt’

And this didn't get rid of the maximise button:

QWidget(parent,
      Qt::Tool |
      Qt::WindowTitleHint |
      Qt::WindowCloseButtonHint)


> -Richard
>
> (BTW: run the $QTDIR/examples/widgets/windowflags example to experiment)
>   
I tried the windowflags example, without success.

best regards

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





More information about the Qt-interest-old mailing list