15 dragDropLabel =
new QLabel(
"",
this);
30 event->acceptProposedAction();
43 event->acceptProposedAction();
49 event->acceptProposedAction();
63 event->mimeData()->data(
event->mimeData()->formats()[0]));
72 dragStartPosition =
event->pos();
81 if ((
event->pos() - dragStartPosition).manhattanLength()
int startDragDistance
the minimum distance required for a drag and drop operation to start.
Qt::DropAction exec(Qt::DropActions supportedActions=Qt::MoveAction)
void setMimeData(QMimeData *data)
Sets the data to be sent to the given MIME data.
The QFrame class is the base class of widgets that can have a frame.
void setFrameStyle(int)
Sets the frame style to style.
The QHBoxLayout class lines up widgets horizontally.
The QLabel widget provides a text or image display.
void setText(const QString &)
void setAlignment(Qt::Alignment)
void addWidget(QWidget *w)
Adds widget w to this layout in a manner specific to the layout.
void setData(const QString &mimetype, const QByteArray &data)
Sets the data associated with the MIME type given by mimeType to the specified data.
\macro QT_RESTRICTED_CAST_FROM_ASCII
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent