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

MouseArea drag.axis change is not effective while a drag is in progress

    XMLWordPrintable

Details

    Description

      Once a drag has started, changing the value of drag.axis has no effect.

      I'm attaching one example of a use-case where this results very problematic: if you have a ListView and you want to let a drag action start from them, you need to set the drag.axis orthogonal to the scrolling direction (or the list will start panning when you want to drag an item); however, as soon as the drag action is started, you can release the axis constraint and allow the item to be dragged anywhere, by setting drag.axis to Drag.XandYAxis.

      But, as you can see by running the attached example, this doesn't work, and the item continues moving horizontally only.

      Attachments

        For Gerrit Dashboard: QTBUG-26440
        # Subject Branch Project Status CR V

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            mardy Alberto Mardegan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes