True, but I don't think that was the intent in this case. The code pattern implies that the QDialog instance was intended to be temporary, since neither the DeleteOnClose attribute was set nor the destructor called.Not for a non-modal dialog though, like in this case (QDialog::show() being called).
For those it is usually either explicit delete or using the DeleteOnClose widget attribute.




Reply With Quote

Bookmarks