Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
Qt Creator on Windows7 with SDK 1.1
Description
I want to learn to use Drag and Drop functionality so i turned to the documentation for MouseArea http://doc.qt.nokia.com/4.7/qml-mousearea.html and found little info about how to un-anchor an element in order to drag it. Just a statement that said:
Note: Items cannot be dragged if they are anchored for the requested drag.axis. For example, if anchors.left or anchors.right was set for rect in the above example, it cannot be dragged along the X-axis. This can be avoided by settng the anchor value to undefined in an onPressed handler.
After trying this and having no luck, I pasted my code on pastebin and got help on #qt-qml on freenode. After aalpert had been nice enough to show me how to make it draggable, I asked him ho he knew this, cause it wasn't in the documentation. He said it was experience, and then suggested that I submit a report to help improve the documentation.
So, here I am.
Qt Quick seems very promising. Would love to see more documentation. I'm sure a lot of people will find the lack of docs as a turn-off.
Thanks,
Malik