PDA

View Full Version : Drag Move



Lele
11th August 2006, 09:13
Hi all,
How can I override the dragged object representation in a custom widget which accepts dropping?

I mean I have a Custom Menu and I want to perform painting operation while a user drag an object, in the examples I found the only operation in DragMoveEvent is just accepting the action or ignore.

Thanks for any tips on that

Bye

wysota
18th August 2006, 13:51
You can either use QDrag::setPixmap to set a drag indicator (but you need to have access to QDrag object) or simply change the cursor during the drag (for example in dragEnter and dragLeave events) using QCursor::setShape, QWidget::setCursor and/or QApplication::setOverrideCursor.