21class Q_GUI_EXPORT
QDrag :
public QObject
24 Q_DECLARE_PRIVATE(QDrag)
26 explicit QDrag(QObject *dragSource);
29 void setMimeData(QMimeData *data);
30 QMimeData *mimeData()
const;
32 void setPixmap(
const QPixmap &);
33 QPixmap pixmap()
const;
35 void setHotSpot(
const QPoint &hotspot);
36 QPoint hotSpot()
const;
38 QObject *source()
const;
39 QObject *target()
const;
41 Qt::DropAction exec(Qt::DropActions supportedActions = Qt::MoveAction);
42 Qt::DropAction exec(Qt::DropActions supportedActions, Qt::DropAction defaultAction);
44 void setDragCursor(
const QPixmap &cursor, Qt::DropAction action);
45 QPixmap dragCursor(Qt::DropAction action)
const;
47 Qt::DropActions supportedActions()
const;
48 Qt::DropAction defaultAction()
const;
53 void actionChanged(Qt::DropAction action);
54 void targetChanged(QObject *newTarget);
57 friend class QDragManager;