QListWidget::takeItem ( int row )
Removes and returns the item from the given row in the list widget; otherwise returns 0.
Items removed from a list widget will not be managed by Qt, and will need to be deleted manually.
附加问一个问题:
如果在takeitem之后,后面再没用到此item,但是忘记了delete,会不会导致内存泄露