title: Qt: Is it possible to use QStandardItemModel.takeRow() to remove nested rows?
body: <p>My goal is to take a row out of a <code>QStandardItemModel</code> that I am displaying with <code>QTreeView</code>.</p>
  
  <p>I was hoping to do this with <code>takeRow()</code>. <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qstandarditemmodel.html#takeRow" rel="nofollow">The documentation</a> for this method says:</p>
  
  <blockquote>
  <pre><code>list-of-QStandardItem QStandardItemModel.takeRow (self, int row)
  
  The list-of-QStandardItem result
  </code></pre>
    
    <p>Removes the given row without deleting the row items, and returns a
    list of pointers to the removed items. The model releases ownership of
    the items. For items in the row that have not been set, the
    corresponding pointers in the list will be 0.</p>
  </blockquote>
  
  <p>It takes no parent parameter, which would be needed to specify a row location in a tree, and seems to only take away top-level rows. Is there a way to use <code>takeRow()</code> to take a child/grandchild of a top-level row? For instance, can it be used to take row 02 below?</p>
  
  <pre><code>|--row 0
  |  |--row 00
  |  |--row 01
  |  |--row 02
  |--row 1
  |--row 2
  </code></pre>
  
  <p>Using something like <code>model.takeRow(2)</code> only removes row 2.</p>