title: How to print qlist for below piece of code
body: <p>I have <code>QList &lt; class &gt;</code> type . I want to print the Qlist how can i do it??</p>
  
  <p>Declaration of QList:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>QList &lt; SidSafetyPacketIn &gt; a_safetyPackets;
  </code></pre>
  
  <p>Now Data appended for QList like below:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>a_safetyPackets.append(SidSafetyPacketIn(pSpdFrom1To4Model, expectedSids[i], i));
  </code></pre>
  
  <p>Now if i want to print the above QList how to do it?</p>