author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 01:19:32 +0300 | |
changeset 37 | 758a864f9613 |
parent 30 | 5dc02b23752f |
permissions | -rw-r--r-- |
import Qt 4.7 /* this test shows a blue box being dragged around -- first roughly tracing the borders of the window, then doing a rough 'x'-shape, then moving to around the middle. */ Rectangle{ width:400 height:440 color: "white" Rectangle{ id: draggable width:40; height:40; color: "lightsteelblue" y:20 MouseArea{ anchors.fill: parent drag.target: draggable drag.axis: "XandYAxis" drag.minimumX: 0 drag.maximumX: 360 drag.minimumY: 20 drag.maximumY: 400 } } }