title: How to autofit widget size and position to a cell in QTreeWidget?
body: <p>I pragrammaticaly create a QTreeWidget. </p>
  
  <p>Then I pragrammaticaly add some items. </p>
  
  <p>Then I add two QLabel widgets to two items (QTreeWidgetItem) by </p>
  
  <pre><code>myTree-&gt;setItemWidget(item1, 0, myLabel1);
  myTree-&gt;setItemWidget(item2, 0, myLabel2);
  </code></pre>
  
  <p>And then I try to resize the row of the item pragrammaticaly. 
  If I use an </p>
  
  <pre><code>item1-&gt;setSizeHint(0, QSize(myWidth, myHeight) );
  </code></pre>
  
  <p>the row chaged. But myLabel1 is not.</p>
  
  <p>If I use an </p>
  
  <pre><code>item1-&gt;setSizeHint(0, QSize(myWidth, myHeight) );
  myLabel-&gt;resize(myWidth, myHeight);
  </code></pre>
  
  <p>everething is ok but the row of myLabel2 mis adjusting to label by position.</p>
  
  <p>Can I do something to auto-adjusting a widget (by size and position) to a cell of QTreeWidget?</p>
  
  <p>P.S. After any resizing of tree (resize by width or expand/collapse node) widgets  updates correctly.</p>