Before delete, you can delete the item by using the following API:

Qt Code:
  1. QListWidgetItem *QListWidget::takeItem ( int row )
To copy to clipboard, switch view to plain text mode 

This API actually removes the item from the list widget and returns the item. After calling this API, you should call delete on the item which was returned by the above API.