QPlatformDrag Class
The QPlatformDrag class provides an abstraction for drag. More...
| Header: | #include <QPlatformDrag> |
| Inherited By: |
Public Functions
| virtual void | cancelDrag() |
| virtual bool | ownsDragObject() const |
| void | updateAction(Qt::DropAction action) |
Detailed Description
\since5.0 \internal \preliminary \ingroup qpa
Member Function Documentation
[virtual] void QPlatformDrag::cancelDrag()
Cancels the currently active drag (only for drags of the current application initiated by QPlatformDrag::drag()).
The default implementation does nothing.
\since5.7
[virtual] bool QPlatformDrag::ownsDragObject() const
\since5.4
Returns bool indicating whether QPlatformDrag takes ownership and therefore responsibility of deleting the QDrag object passed in from QPlatformDrag::drag. This can be useful on platforms where QDrag object has to be kept around.
void QPlatformDrag::updateAction(Qt::DropAction action)
Called to notify QDrag about changes of the current action.