title: destructors in Qt4
body: <p>I'm very confused about using destructors in Qt4 and hope, you guys can help me.<br>
  When I have a method like this (with "Des" is a class):</p>
  
  <pre><code>void Widget::create() {
      Des *test = new Des;
      test-&gt;show();
  }
  </code></pre>
  
  <p>how can I make sure that this widget is going to be deleted after it was closed?</p>
  
  <p>And in class "Des" i have this:</p>
  
  <pre><code>Des::Des()
  {
      QPushButton *push = new QPushButton("neu");
      QHBoxLayout *layout = new QHBoxLayout;
      layout-&gt;addWidget(push);
      setLayout(layout);
  }
  </code></pre>
  
  <p>where and how do I have to delete *push and *layout? what should be in the destructor Des::~Des() ?</p>