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?

Boudewijn

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

Reply via email to