title: Qt list.clear() does it destroy the object's?
body: <p>Let's say I have the following list:</p>
  
  <pre><code>QList&lt;Type*&gt; list;
  list.add(new Type());
  list.add(new Type());
  list.add(new Type());
  list.add(new Type());
  list.add(new Type());
  list.add(new Type());
  </code></pre>
  
  <p>If I want to empty the list, I can call <code>list.clear()</code></p>
  
  <p>Does it then automatically delete every pointer or do I have to do the following to prevent memory leaks:</p>
  
  <pre><code>foreach (Type* t, list) delete t;
  list.clear();
  </code></pre>