Thanks! That worked. But now I have another problem:
Qt Code:
  1. QString file = "C:\\Users\\administrator\\Downloads\\ethereal-setup-0.99.0.exe";
  2. QFileInfo fileInfo( file );
  3. QFileIconProvider fileIconProvider;
  4. QIcon appIcon = fileIconProvider.icon( fileInfo );
To copy to clipboard, switch view to plain text mode 
Thats code I found here in the Forum.
Then I do the following:
Qt Code:
  1. QGraphicsPixmapItem *pitem2 = new QGraphicsPixmapItem(QPixmap(appIcon.pixmap(2,QIcon::Normal,QIcon::On)));
  2. scene->addItem(pitem2);
  3. pitem2->setPos(100, 100);
  4. pitem2->setFlag(QGraphicsItem::ItemIsMovable,true);
To copy to clipboard, switch view to plain text mode 
But nothing renders on the screen. An idea why?