But the signal may be emited by another slot that takes the item as a parameter Either show us the backtrace or make a little test - instead of
Qt Code:
  1. tree->clear()
To copy to clipboard, switch view to plain text mode 
call:
Qt Code:
  1. QTimer::singleShot(0, tree, SLOT(clear()));
To copy to clipboard, switch view to plain text mode