PDA

View Full Version : Drag and Drop from a list to a form



orbital_fox
1st October 2009, 19:29
Ive got a QFormLayout with its QLineEdit objects etc.. And ive got a QListWidget next to it. Ive been trying to set it up so that I can drag and drop from the list to the form. Ive got the form picking up the drop events, but i cant get the data extracted.

From what I understand the mime type of the data provided by the drop is application/x-qabstract... I cant find any information anywhere how to handle those though. All i can find is how to make completely custom drag and drop methods. I cant find how to decode a built in drop event though.

Let me know if my method is wrong all together and I should be doing something different.