Hi,
I'm having a problem with a QTreeWidget.
I've created a class derived from QTreeWidget and I've reimplemented "mouseReleaseEvent" as:
Qt Code:
  1. void myTree::mouseReleaseEvent(QMouseEvent* event)
  2. {
  3. QTreeWidgetItem* pqItem = itemAt(event->pos());
  4. emit (emitItemClicked(pqItem));
  5. }
To copy to clipboard, switch view to plain text mode 

This let me know if the user has clicked into blank space(not an item).

Then, the QWidgetTree automatically selects the clicked item. This works when I was using Qt 4.1.0, but now that I've updated to Qt 4.3.0 this don't work. The item is emmited, but the QTreeWidget sometimes select the item and sometimes don't(there are items to expand with "plus" also).

Maybe have I to force the QTreeWidget to select the item? And, how to know if the user have clicked the "plus" or not?

Thanks,