[Qt-interest] how to remove maximize button in Mac OS X tool window
Richard Moe Gustavsen
richard.gustavsen at nokia.com
Fri Jan 15 08:40:32 CET 2010
Yes, I saw that. Conside upgrading to Qt-45 (or better; Qt-46), if you
can.
This should work:
class MyWidget : public QWidget
{
public:
MyWidget::MyWidget( QWidget* parent ) : QWidget(parent, Qt::Tool)
{
}
void setVisible(bool visible)
{
QWidget::setVisible(visible);
ChangeWindowAttributes(qt_mac_window_for(this),
kWindowNoAttributes, kWindowFullZoomAttribute);
}
};
-Richard
On Jan 14, 2010, at 4:27 PM, Andy Brice wrote:
> 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
>
>
>
/**
Richard Moe Gustavsen
Software Engineer II, Platform Team
Nokia Norge AS / Qt Development Frameworks
Sandakerveien 116, 0484 Oslo, Norway
**/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100115/1948ec7d/attachment.html
More information about the Qt-interest-old
mailing list