Hi

I am not able tu use drag and drop on Ubuntu Touch. It works on the desktop but 
crashes the application on Ubuntu Touch preview. Does anyone have any idea?

Here is the code that crashes on Nexus 7 using the latest build today (also 
crashes previous builds).


import QtQuick 2.0
import Ubuntu.Components 0.1


MainView {
    objectName: "mainView"
    applicationName: "test1"
    id: root

    width: units.gu(100)
    height: units.gu(100)

    MouseArea {
        id: mouseArea
        anchors.fill: parent
        drag.target: dragable
        drag.axis: Drag.XAndYAxis

        onReleased: {
            dragable.Drag.drop(Qt.LinkAction);
        }
    }

    Rectangle {
        id: dropzone
        x: units.gu(30)
        y: units.gu(30)
        width: units.gu(20); height: units.gu(20)
        radius: units.gu(10)
        color: "black"

        DropArea{
            anchors.fill: parent

            onDropped: {
                console.log("onDropped ");
            }
            onEntered: {
                console.log("onEntered ");
            }
            onExited: {
                console.log("onExited ");
            }
        }
    }

    Rectangle {
        id: dragable
        width: units.gu(10); height: units.gu(10)
        radius: units.gu(5)
        color: "yellow"
        Drag.active: mouseArea.drag.active
    }
}
-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to