I want to drag a image from ListWidget and Drop inside the view port of QVTKOpenGLWidget
-
I have done the item clicked event for listWIdget but know i want to drag a image from listwidget and drop to QVTKOpenGLWidget.
for item clicked i will write some code :-void mainwindow::onThumbItemClicked(QListWidgetItem* item) { for (int i = 0; i < 6; i++) { if (this->ui->m_ThumblistWidget->item(i) == item) { SeriesChange(i); LoadViewerComponents(false); } } }Know the same thind i want to do for drag and drop when i select image then i will call the same function again to change the series of image.
It would be great if someone could guide me regarding this.
Thank you in advance
-
Hi,
You should start by the Using Drag and Drop with Item Views chapter of Qt's documentation.
-
Hi,
You should start by the Using Drag and Drop with Item Views chapter of Qt's documentation.