22class Q_GUI_EXPORT
QDrag :
public QObject
25 Q_DECLARE_PRIVATE(QDrag)
27 explicit QDrag(QObject *dragSource);
30 void setMimeData(QMimeData *data);
31 QMimeData *mimeData()
const;
33 void setPixmap(
const QPixmap &);
34 QPixmap pixmap()
const;
36 void setHotSpot(
const QPoint &hotspot);
37 QPoint hotSpot()
const;
39 QObject *source()
const;
40 QObject *target()
const;
42 Qt::DropAction exec(Qt::DropActions supportedActions = Qt::MoveAction);
43 Qt::DropAction exec(Qt::DropActions supportedActions, Qt::DropAction defaultAction);
45 void setDragCursor(
const QPixmap &cursor, Qt::DropAction action);
46 QPixmap dragCursor(Qt::DropAction action)
const;
48 Qt::DropActions supportedActions()
const;
49 Qt::DropAction defaultAction()
const;
54 void actionChanged(Qt::DropAction action);
55 void targetChanged(QObject *newTarget);
58 friend class QDragManager;