Your code does not work because
Qt Code:
  1. connect(item, SIGNAL(destroyed()),this,SLOT(ReCreate())
To copy to clipboard, switch view to plain text mode 
is at the wrong place. You have to put in inside the initPic method.