QML Drag.active support is broken (crashes)

Bug #1229876 reported by Gustavo Niemeyer
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qtubuntu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The documented (and simple) approach for doing drag & drop in QML applications is currently crashing inside Ubuntu Touch.

Discussing the issue in the ubuntu-touch mailing list, people confirmed the problem, and pointed out that they have either worked around the issue by reimplementing drag & drop by hand (with onPressAndHold, etc) or are still waiting for the problem resolution.

This is an example that crashes, for instance:

    http://paste.ubuntu.com/6150309/

It was obtained from the documentation at:

    http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-drag.html

This is the thread on the ubuntu-phone mailing list:

    https://lists.launchpad.net/ubuntu-phone/msg04231.html

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

After some further debugging, this seems to be the offending line:

    Drag.active: dragArea.drag.active

Without it, the crash goes away and dragging works in Ubuntu Touch too.

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

As a reference, here is the documentation for these attached properties:

    http://qt-project.org/doc/qt-5.1/qtquick/qml-qtquick2-drag.html

summary: - QML drag & drop support is broken (crashes)
+ QML Drag.active support is broken (crashes)
Revision history for this message
Joey Chan (qqworini) wrote :

Another bug report describe the same issue https://bugs.launchpad.net/ubuntu-rssreader-app/+bug/1228174

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Michał Sawicz (saviq)
affects: qtubuntu → qtubuntu (Ubuntu)
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.