On 2009-01-05 10:52:54 +0100, Boudewijn Rempt <[email protected]> said:

> I've just compiled Friday's qt-snapshop on OSX in cocoa mode, and I'm 
> finding the following:
> 
> If I have a subwindow like:
> 
> class SubWindow: public QWidget
> {
> Q_OBJECT
> public:
>         SubWindow::SubWindow(QWidget * parent)
>                 : QWidget(parent, Qt::Window)
>         {
> 
>                 QAction *closeAction = new QAction(this);
>                 closeAction->setShortcut(QKeySequence::Close);
>                 connect(closeAction, SIGNAL(triggered()), SLOT(close()));
>                 addAction(closeAction);
>         }
> 
> };
> 
> 
> And create it like this:
> 
>         w = new SubWindow(this);
>         w->setAttribute(Qt::WA_DeleteOnClose, true);
>         w->show();
> 
> Then on close, it is not deleted, but hidden. Is this an intentional change
> of behaviour?

Sounds like a bug. We'll check it out. Thanks for letting us know.

-- Trenton

_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to