Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18579

Add more specifics to the MouseArea documentation

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            laserbeak43 Malik Martin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes