Hi, I am looking for a proper way on how to apply a mouse press-release 
operation on two QtQuick objects. For simplicity, say I have two rectangles 
on the QtQuick scene. Now I want to press the mouse at one of them and 
release it at the other rectangle. By this, I want to listen to the onPressed 
signal of the first and to the onReleased signal of the second rectangle. 
(the idea behind: I create a connection between both objects)

My current approach was to use MouseArea items filling each rectangle. 
Yet, when pressing the mouse at the first rectangle and releasing at at the 
other, I only get pressed(MouseEvent) and released(MouseEvent) signals 
from the first rectangle, i.e. the rectangle where I started the press.

What would be a correct way to do this?

Cheers,
Andreas
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to