title: Qt treeview resizing
body: <p>I have got a table view with custom model.I want to resize the table view according to the size of column contents.It has only 1 column.</p>
  
  <p>I have a line edit.On typing the text in line edit, tree view will show the corresponding result.Therefore, the contents of column keeps changing depending on what text is typed in the line edit.</p>
  
  <p>Thanks in advance.</p>