4#include <QDragEnterEvent>
30 event->acceptProposedAction();
32 event->acceptProposedAction();
void dragEnterEvent(QDragEnterEvent *event)
Handles drag enter events, accepting the drop if the filter allows it.
std::function< void(QDropEvent *event)> m_drop_callback
Callback invoked when a drop event occurs.
void setDropFilter(std::function< bool(const QMimeData *event)> filter)
Sets a filter function that determines whether a drag should be accepted.
void dropEvent(QDropEvent *event)
Handles drop events by invoking the registered drop callback.
FileDropFrame(QWidget *parent=nullptr)
Constructs a FileDropFrame.
std::function< bool(const QMimeData *event)> m_drop_filter
Filter function to accept or reject drag events.
void setDropCallback(const std::function< void(QDropEvent *event)> &drop_callback)
Sets the callback invoked when a file is dropped onto this frame.
The primary namespace for the NDEVR SDK.