QDrag

Header: #include <QDrag>
qmake: QT += gui

 

Public Functions

QDrag(QObject *dragSource)
virtual ~QDrag()
Qt::DropAction defaultAction() const
QPixmap dragCursor(Qt::DropAction action) const
Qt::DropAction exec(Qt::DropActions supportedActions = Qt::MoveAction)
Qt::DropAction exec(Qt::DropActions supportedActions, Qt::DropAction defaultDropAction)
QPoint hotSpot() const
QMimeData * mimeData() const
QPixmap pixmap() const
void setDragCursor(const QPixmap &cursor, Qt::DropAction action)
void setHotSpot(const QPoint &hotspot)
void setMimeData(QMimeData *data)
void setPixmap(const QPixmap &pixmap)
QObject * source() const
Qt::DropActions supportedActions() const
QObject * target() const

 

 

 

 

 

 

 

 

################################

posted @ 2021-06-06 20:40  西北逍遥  阅读(325)  评论(0编辑  收藏  举报