A drag 'n' drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is coming from another widget and the mime data is of type 'application/x-qmitk-datanode-ptrs' the node(s) will be dropped and a signal is emitted. A class including this DnD-widget can than handle the vector of dropped nodes appropriately.
More...
#include <QmitkDnDDataNodeWidget.h>
|
void | NodesDropped (std::vector< mitk::DataNode * > nodes) |
| The signal will be emitted if the drag events are accepted. It contains the vector of nodes that have been dropped. More...
|
|
A drag 'n' drop widget (QFrame) that checks the mime data of the incoming event. If the drag event is coming from another widget and the mime data is of type 'application/x-qmitk-datanode-ptrs' the node(s) will be dropped and a signal is emitted. A class including this DnD-widget can than handle the vector of dropped nodes appropriately.
Definition at line 35 of file QmitkDnDDataNodeWidget.h.
◆ QmitkDnDDataNodeWidget()
QmitkDnDDataNodeWidget::QmitkDnDDataNodeWidget |
( |
QWidget * |
parent = nullptr | ) |
|
◆ ~QmitkDnDDataNodeWidget()
QmitkDnDDataNodeWidget::~QmitkDnDDataNodeWidget |
( |
| ) |
|
|
override |
◆ NodesDropped
void QmitkDnDDataNodeWidget::NodesDropped |
( |
std::vector< mitk::DataNode * > |
nodes | ) |
|
|
signal |
The signal will be emitted if the drag events are accepted. It contains the vector of nodes that have been dropped.
The documentation for this class was generated from the following file: