What do you mean with "it becomes invalid"?
Where in your code does that lead to a problem?
Cheers,
_
What do you mean with "it becomes invalid"?
Where in your code does that lead to a problem?
Cheers,
_
When I drag an tree item to my plot, I'm sure the drag event was triggered since the mouse was moving with the item icon which I set as the drag picture. But when releasing the mouse which should had triggered the drop event, nothing happened.
Do you get the drag enter and move events?
Cheers,
_
yeah, both of drag enter and move events are accepted. But no drop event .
Ah, so the problem is that Plot::dropEvent() is not called, not that it is called with an invalid event, right?
Have you switched the widget's acceptDrop property to true?
Cheers,
_
this->setAcceptDrops(true);
I have set this property, the problem above happens occasionally. The program runs fine most of the time.
what else can I do?
Bookmarks