QCustomPlot Discussion and Comments

Drag and Drop graphs from one QCustomPlot widget to anotherReturn to overview

Hi all,

I am trying to implement the drag and drop a QCPGraph from one widget to another. Does anyone have had experience with this? I've read over the QT manual for Drag and Drop function, but kinda stuck at the MimeData that is used to filter the drop event because I don't know what is the MimeData type of a QCPGraph.

Any help would be really appreciated.

Thanks,
Dan

there is no MimeData type for a QCPGraph. this is basically just a user type that you would want to create on your draggable subclass of QCustomplot.

there is an example on Qt for this in qt5.

http://doc.qt.io/qt-5/qtwidgets-draganddrop-puzzle-example.html