You can use QDrag::setPixmap .
Also refer to Draggable Icons examples in Drag and Drop section of Qt Demo.
painter.begin(&tempPixmap);
painter.
fillRect(pixmap.
rect(),
QColor(127,
127,
127,
127));
painter.end();
child->setPixmap(tempPixmap);
QPixmap tempPixmap = pixmap;
QPainter painter;
painter.begin(&tempPixmap);
painter.fillRect(pixmap.rect(), QColor(127, 127, 127, 127));
painter.end();
child->setPixmap(tempPixmap);
To copy to clipboard, switch view to plain text mode
You can try something like that. Making a pixmap and setting it with the transparent values of the image .
Hope you get the idea
Bookmarks