It is:
Qt Code:
  1. QListWidgetItem *item = new QListWidgetItem(*icon, str, customerList);
To copy to clipboard, switch view to plain text mode 
because you create the QIcon on the heap. It is a pointer. The constructor takes as parameter a const reference to a QIcon, not a pointer.

Regards