Medical Imaging Interaction Toolkit  2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDnDDataNodeWidget Class Reference

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>

Inheritance diagram for QmitkDnDDataNodeWidget:
Collaboration diagram for QmitkDnDDataNodeWidget:

Signals

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...
 

Public Member Functions

 QmitkDnDDataNodeWidget (QWidget *parent=nullptr)
 
 ~QmitkDnDDataNodeWidget () override
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QmitkDnDDataNodeWidget()

QmitkDnDDataNodeWidget::QmitkDnDDataNodeWidget ( QWidget *  parent = nullptr)

◆ ~QmitkDnDDataNodeWidget()

QmitkDnDDataNodeWidget::~QmitkDnDDataNodeWidget ( )
override

Member Function Documentation

◆ 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: