PDA

View Full Version : Can't get Drag and Drop capability work.



HeX0R
27th March 2010, 23:19
Hi,

i am try to implement drag and drop capability in little program ,,,
the problem is when i set the main window to accept drops, it is not working and when i try to drop a file i get an error cursor.
It's weird because I did it before and it worked ...
I try to compare the projects and I do not see much difference...


This may sound familiar to anyone???

Does anybody have an idea that can help?
Thank you very much!

HeX0R
28th March 2010, 00:30
I got it.
I had to implement the function:
dragEnterEvent(QDragEnterEvent *event)
With:
event->acceptProposedAction();

Otherwise it does not allow Drops.


:D