Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to check elements whether it exists or not after drag and drop operation?
ankit thakar last edited by
I have one application in which i have implemented drag and drop functionality.
Now, I want to check if the items which we have selected for drag operation, does already exists,
If it exists. it should give some message box like to stop or to overwrite it.
How can I achieve such kind of functionality?
You should be able to do it on the drop event. There you can check whether you already have an element corresponding to what is being dropped and you can use a QDialog to ask the question to your user.
Hope it helps