title: C++,QT Error When Assigning QList<T> to QList<T>
body: <p>I am developing QML apps with c++ but I'm currently stuck with a, maybe simple, error: </p>
  
  <blockquote>
    <p>C:\Qt\5.2.1\mingw48_32\include\QtCore\qvector.h:679: error: no match for 'operator==' (operand types are 'ListModel' and 'ListModel')
             if (!(*--i == *--j))
                        ^</p>
  </blockquote>
  
  <p>My header is :</p>
  
  <pre><code>#ifndef COMBOBOXUPDATE_H
  #define COMBOBOXUPDATE_H
  #include &lt;QObject&gt;
  #include &lt;QStringList&gt;
  #include &lt;QString&gt;
  #include &lt;QVector&gt;
  
  struct ListModel;
  
  class ComboboxUpdate:public  QObject
  {
  Q_OBJECT
  Q_PROPERTY(QVector&lt;ListModel&gt; comboList READ comboList)
  
  public:
  
    ComboboxUpdate(QObject *parent = 0);
    QVector&lt;ListModel&gt; comboList();
    void setComboList( QVector&lt;ListModel&gt; &amp;comboList);
  
  private:
  QVector&lt;ListModel&gt; m_comboList;
  int         m_count;
  };
  
  struct  ListModel
  {
  ListModel();
  ListModel(QString _text,int _Sqlid)
  {
      text=_text;
      Sqlid=_Sqlid;
  }
  QString text;
  int     Sqlid;
  };
  #endif // COMBOBOXUPDATE_H
  </code></pre>
  
  <p>The error occurs in this code area inside implementation file:</p>
  
  <pre><code>void ComboboxUpdate::setComboList(  QVector&lt;ListModel&gt; &amp;comboList)
  {
      if (m_comboList != comboList)
      {
          m_comboList = comboList;
      }
  }
  </code></pre>
  
  <p>I cannot understand why this problem occurs. My main target is filling combobox from c++ side using stuffs like <code>ListElement</code>. I can success to fill by using <code>QStringList</code>. But I want to fill by like <code>ListElement</code>. For example: </p>
  
  <pre><code>ComboBox {
      model: ListModel {
                 ListElement {sqlid:"1"; text:"Pansi"}
                 ListElement {sqlid:"2"; text:"Rose"}
                 ListElement {sqlid:"3"; text:"Clips"}
             }
      anchors.fill: parent
  }
  </code></pre>
  
  <p>On QML side this model shows text in <code>ComboBox</code> and stores the values into sqlite. How can I do that on c++ side?</p>