title: Remove an item from QList throws error
body: <p>How to delete an object form Qlist</p>
  
  <pre><code>QList&lt;CascadeJobInfo&gt; m_InternJobInfoList;
  foreach (CascadeJobInfo jobInfo, m_InternJobInfoList)
  {
  
      m_InternJobInfoList.removeOne(jobInfo);
  }
  </code></pre>
  
  <p>it throws error
  C:\Qt\Qt5.7.0\5.7\mingw53_32\include\QtCore\qlist.h:972: error: no match for 'operator==' (operand types are 'CascadeJobInfo' and 'const CascadeJobInfo')
               if (n->t() == t)
                          ^</p>