-
drop image fly back
Hi,
I am using Qt4.1.1. I have two widgets that accept drops. I have an image attached to drag.
If a widget does not accept drop then the image must fly to the original point it was dragged from (same as the one seen in browsers, try to drag an image from the browser and drop it on status bar).
Please reply me if this can be done in Qt.
Regards,
Sree
-
Re: drop image fly back
Yes this can be done in Qt ;)
-
Re: drop image fly back
Thanks for the reply.
But please do reply me how to do it.
regards,
sree
-
Re: drop image fly back
http://doc.trolltech.com/4.1/dnd.html
As for the "flyback" animation, you may have to implement that yourself by showing and moving a transparent widget on a timer.
-
Re: drop image fly back
Thanks for the reply,
But can you provide me an example code of how to do it
regards,
sreed
-
Re: drop image fly back
Create a widget representing your "icon", create a timer and animate (move) the widget on each timeout. Look at QTimer class docs for details. There are some examples there.