this is a question you can answer yourself. Simply create a subclass and see if the d-tor is called:
Qt Code:
  1. class MyWidget : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. MyWidget(QWidget* parent = 0) : QWidget(parent) { setAttribute(Qt::WA_DeleteOnClose); }
  7. ~MyWidget() { qDebug() << Q_FUNC_INFO; }
  8. }
To copy to clipboard, switch view to plain text mode 
and now see the output and your question answered.