I use the QTreeWidgt like this:
Qt Code:
  1. QTreeWidget* pShowListView = new QTreeWidget;
  2. QTreeWidgetItem* item = NULL;
  3. QTreeWidgetItem* preItem = NULL;
  4. for( ...; ...; ....)
  5. {
  6. item = new QTreeWidgetItem(pShowListView,preItem);
  7. //init the item value
  8.  
  9. preItem = item;
  10. }
To copy to clipboard, switch view to plain text mode 

then how can I remove the line in my Treewidget?
the line like this:

|__My Record A
|__My Record B
|__My Record C
|__My Record D