chkong
13th October 2011, 02:41
I started a drag with image.
QDrag* drag = new(QDrag)(this);
drag->setPixmap(*pixmap);
drag->exec(Qt::CopyAction | Qt::MoveAction);
I want to change the image display when my drag reach certain point in the widget. Is there anyway to retrieve the drag object so that I could change the image?
QDrag* drag = new(QDrag)(this);
drag->setPixmap(*pixmap);
drag->exec(Qt::CopyAction | Qt::MoveAction);
I want to change the image display when my drag reach certain point in the widget. Is there anyway to retrieve the drag object so that I could change the image?