14 commentEdit =
new QTextEdit(centralFrame);
16 "window or the desktop background:</p>"),
18 iconLabel =
new QLabel(centralFrame);
19 iconPixmap.load(
":/images/file.png");
20 iconLabel->setPixmap(iconPixmap);
29 setCentralWidget(centralFrame);
30 setWindowTitle(
tr(
"Dragging"));
54 actionText =
tr(
"The text was copied.");
57 actionText =
tr(
"The text was moved.");
60 actionText =
tr(
"The text was linked.");
63 actionText =
tr(
"The drag was ignored.");
66 actionText =
tr(
"Unknown action.");
void mousePressEvent(QMouseEvent *event) override
[0]
Qt::DropAction exec(Qt::DropActions supportedActions=Qt::MoveAction)
void setMimeData(QMimeData *data)
Sets the data to be sent to the given MIME data.
void setPixmap(const QPixmap &)
Sets pixmap as the pixmap used to represent the data in a drag and drop operation.
The QFrame class is the base class of widgets that can have a frame.
The QGridLayout class lays out widgets in a grid.
void addWidget(QWidget *w)
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QLabel widget provides a text or image display.
The QMainWindow class provides a main application window.
void setText(const QString &text)
Sets text as the plain text (MIME type text/plain) used to represent the data.
bool contains(const QRect &r, bool proper=false) const noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QString toPlainText() const
QString QTextEdit::toPlainText() const.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent