4#include <QDragEnterEvent>
55void Window::dragEnterEvent(QDragEnterEvent *
event)
57 if (
event->mimeData()->hasFormat(
"text/plain"))
58 event->acceptProposedAction();
63void Window::dropEvent(QDropEvent *
event)
66 mimeTypeCombo->
clear();
69 event->acceptProposedAction();
The QComboBox widget is a combined button and popup list.
void addItems(const QStringList &texts)
Adds each of the strings in the given texts to the combobox.
void clear()
Clears the combobox, removing all items.
The QLabel widget provides a text or image display.
void addWidget(QWidget *w)
Adds widget w to this layout in a manner specific to the layout.
QObject * parent() const
Returns a pointer to the parent object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTextBrowser class provides a rich text browser with hypertext navigation.
void setPlainText(const QString &text)
Changes the text of the text edit to the string text.
The QVBoxLayout class lines up widgets vertically.
void dropEvent(QDropEvent *event) override
[3]
void dragEnterEvent(QDragEnterEvent *event) override
[2]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent