title: Setting an Item Delegate for rows in a QTreeView when the tree is dynamic
body: <p>I am using a QTreeView to display a hierarchy of items.  Something like this</p>
  
  <pre><code>Child 1
  Child 2
  Child 3
     Child a
     Child b
     Child c
  Child 4
     Child d
  </code></pre>
  
  <p>The trick is this:  The children of Child 3, and Child 4 is a dynamic list.  So there can be any number of children under either.   I also want to be able to rename each of the nodes, but there are different rules of what is a correct name for the children of Child 3, and Child 4.</p>
  
  <p>I started setting setItemDelegateForRow, but of course that doesn't work, as the children shift up and down in the tree as others are added/removed.</p>
  
  <p>I was hoping there was a way to attribute an ItemDelegate to a QStandardItem, but it doesn't seem possible.</p>
  
  <p>Any suggestions?</p>