How to check elements whether it exists or not after drag and drop operation?
-
wrote on 27 Aug 2015, 06:12 last edited by
Hello,
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?
-
Hi,
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
1/2