Drag and drop (copy QLabel, not move)
-
Hello,
I implement drag and drop from a widget to another, it removes my items from the source pastesit on the widget receiver. I'd just like to copy it ( keep it in the source). What is the best solution? ( my items are QLabel) -
Hi,
How are you doing your current drag and drop ?
-
You could pass a (Q)pointer to the label within the QDrag, check if the label is a child of the drop-target and, if so, move it - otherwise copy it.
More information on what you are doing would be helpful, though.