QBasicDrag Class
QBasicDrag is a base class for implementing platform drag and drop. \since
5.0 \internal
\ingroup
qpa. More...
Header: | #include <QBasicDrag> |
Inherits: | QPlatformDrag and QObject |
Inherited By: |
Protected Functions
void | moveShapedPixmapWindow(const QPoint &globalPos) |
Detailed Description
QBasicDrag implements QPlatformDrag::drag() by running a local event loop in which it tracks mouse movements and moves the drag icon (QShapedPixmapWindow) accordingly. It provides new virtuals allowing for querying whether the receiving window (within the Qt application or outside) accepts the drag and sets the state accordingly.
Member Function Documentation
[protected]
void QBasicDrag::moveShapedPixmapWindow(const QPoint &globalPos)
Move the drag label to globalPos, which is interpreted in device independent coordinates. Typically called from reimplementations of move().