I reference pullmybeard to work on drag and drop effect.
To do something programmatically, I would use cpp rather than QML itself.
But I face problem in setting property variables. Here is my code segments:
Container *playerContainer = Container::create();
playerContainer->setLayout(new AbsoluteLayout);
playerContainer->setLayoutProperties(AbsoluteLayoutProperties::create().x(posX).y(posY));`
I would set a variables to this playerContainer
in order to store positionX and Y. Like pullmybeard, inside ImageView id:beard, it sets property real dy. So, it can be used in onTouch hander.