title: how to obtain contact list in qt
body: <p>i use this code and getting contact details of only one person ....</p>
  
  <pre><code>contactManager = new QContactManager();
  QList&lt;QContact&gt; contacts = contactManager-&gt;contacts();
  contacts.detail(QContactPhoneNumber::DefinitionName).value(QContactPhoneNumber::FieldNumber);
  
  QContact a = contactManager-&gt;contact(contacts.count());
  QContactPhoneNumber no = a.detail&lt;QContactPhoneNumber&gt;();
  qDebug() &lt;&lt; "Name:" &lt;&lt; a.displayLabel() &lt;&lt; "Number:" &lt;&lt; " " &lt;&lt; no.number() ;
  UserId = a.displayLabel();
  PhoneNumber = no.number();
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Name: andrew Number: +7811341255
  </code></pre>
  
  <p>but i want list of contact like this</p>
  
  <pre><code>Name: andrew Number: +7811341255
  Name: person2 Number: +44124156
  Name: person3 Number: +212113
  </code></pre>
  
  <p>....list of no of contact in phone
  any help appreciated....</p>