title: Removing duplicates from a QList
body: <p>For years I have been using the following pattern to remove duplicates from an object of the C++ <code>std::vector</code> type:</p>
  
  <pre><code>std::vector&lt;int&gt; cont;
  std::sort(cont.begin(), cont.end());
  cont.erase(std::unique(cont.begin(), cont.end()), cont.end());
  </code></pre>
  
  <p>Now I am wondering if the same paradigm is the one to be used with the Qt <code>QList&lt;&gt;</code> class, or if there is a more elegant way to do it.</p>