If i use for exampl a mouse event, how can i identify which item on the treeview is clicked ?
for exampl on QTreeWidget i can use my class
Qt Code:
  1. class myTreeWidget:public QTreeWidget
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. void mousePressEvent (QMouseEvent *event)
  2. signals:
  3. void itemClicked (QTreeWidgetItem *);
  4. //......
  5. void myTreeWidget::itemClicked(QMouseEvent * e)
  6. {
  7. QTreeWidgetItem *selectedItem = itemAt(e->pos());
  8. emit itemClicked(selectedItem);
  9. }
To copy to clipboard, switch view to plain text mode 
how can i use like this on QTreeView
thank you