title: Using QPoint with std::map in C++
body: <p>I have QPoint variables in a vector and i want to store it in a map.</p>
  
  <pre><code>std::map&lt;QPoint, int&gt; pointMap;
  QPoint t;
  int i;
  pointMap.insert(std::pair&lt;QPoint,int&gt;(t, i));
  </code></pre>
  
  <p>If i use string,int map, it works fine. However i can't use QPoint in a map. Any ideas?</p>
  
  <p>Compiler message: "no match for call to (std::pair)(QPoint&amp;, int)"</p>