title: How to iterate through a QStandardItemModel completely?
body: <p>I have a QStandardItemModel, which I display in q QTreeView. Works fine.</p>
  
  <p>To highlight relevant rows I want to highlight some of them: Therefore I have a QStringList with the names of the QStandItem* s to be highlighted.</p>
  
  <pre><code>QStringList namesToBeHighlighted = getNames();
  
  QModelIndex in = myModel-&gt;index(0, 0);
  
  if ( in.isValid() ) {
  
      for (int curIndex = 0; curIndex &lt; myModel-&gt;rowCount(in); ++curIndex) {
  
          QModelIndex si = myModel-&gt;index(curIndex, 0, in);
          QStandardItem *curItem = myModel-&gt;itemFromIndex(si);
  
          if (curItem) {
             QString curItemName = curItem-&gt;text();
  
             if ( namesToBeHighlighted.contains(curItem-&gt;text()) ) {
                 curItem-&gt;setFont(highlightFont);
             }
             else curItem-&gt;setFont(unHighlightFont);
          }
      }
  }
  </code></pre>
  
  <p>My Model has following structure:
  <br>Level_1<br>
   +--> Level_11<br>
   +--> Level_12<br>
   +--> Level_13<br>
  Level_2<br>
   +--> Level_21<br>
   +--> Level_22<br>
   +--> Level_23<br>
  ...<br></p>
  
  <p>Here, it iterates trough Levels 11, 12 and 13 then it stops.</p>