[Qt-qml] Overlapping MouseAreas / big cursor for recording video

Cornelius Hald hald at icandy.de
Sun Aug 29 16:59:18 CEST 2010


On Sun, 2010-08-29 at 15:55 +0200, Cornelius Hald wrote:
> MouseArea {
>     anchors.fill: parent
>     hoverEnabled: true
>     acceptedButtons: Qt.RightButton
>     onMousePositionChanged: {
>         cursor.x = mouse.x;
>         cursor.y = mouse.y;
>     }
> }
> 
> Now this MouseArea is only listening to right-clicks and will pass
> through the left-clicks to the underlying items.

I just noticed that now the custom cursor is not following the mouse
pointer if moved while the left mouse button is pressed. So the result
doesn't look good if I, for example, flick a list.

Pointers on how to do that properly would be very welcome :)

Thanks!
Conny





More information about the Qt-qml mailing list