QDrag - return status of action?
Unsolved
General and Desktop
-
Hey
When I process QDrop event, at the end of my functions I would like to set the status of QDrop event to either well... successful or failed so that the initial class that sends the event can then properly manage itself in case of true/false.
How can I properly execute the drag.exec() event to get a result out of it?
Or its something like
drag.exec()
drag->getResult() ?I don't see anything like that in QDrag /QMime so I wonder if I should subclass drag and add it... mhmm?
-
Hi,
Did you check the return value of
exec
? -
You don't set it. The
exec
method has a return value.