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

MouseArea's drag target cannot be unset

    XMLWordPrintable

Details

    • 9c4140af1cbc650905de698daa4ab0183efba477

    Description

      Once a MouseArea has had a drag.target set, it cannot be retracted.
      This means for example that this code does not work

      drag.target: (draggable.state == "dragged") ? draggable : undefined
      

      The result of the above is
      Unable to assign [undefined] to QGraphicsObject*
      Same is true if replacing "undefined" by "null" above.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes