PDA

View Full Version : QRubberband- Mouse clicked on Rubber band area



bismitapadhy
30th April 2010, 06:16
How can we find that mouse event pressed on Rubberband area?
I draw two line using rubber band, When mouse event press how can i find mouse clicked or rubber band area or not
and if clicked on which rubber band out of two?

aamer4yu
30th April 2010, 08:02
I dont think it makes sense to use 2 rubber bands at same time .
They must be some custom widgets where you want to select some area.
And when you click on a widget, you get a mousePressEvent in that widget.

bismitapadhy
30th April 2010, 08:10
I dont think it makes sense to use 2 rubber bands at same time .
They must be some custom widgets where you want to select some area.
And when you click on a widget, you get a mousePressEvent in that widget.
My requirement is i need to set two rubberband and both are movable and i need to find the difference time between two marker?
To move the rubber band i need to track is mouse clicked on the rubberband or not?