Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-11 Thread Shawn Rutledge
> On 8 Mar 2019, at 11:29, maitai wrote: > > Yes with anchors.fill:parent, Pressed/Released works only if the mouse is > exactly on the line, while hover seems to use the bounding rect of the > polyline... > > But anyway with containmentMask: polyline, all is OK and hover occurs only > exact

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-08 Thread maitai
Yes with anchors.fill:parent, Pressed/Released works only if the mouse is exactly on the line, while hover seems to use the bounding rect of the polyline... But anyway with containmentMask: polyline, all is OK and hover occurs only exactly on the line. The only thing one could hope for is a

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-08 Thread Paolo Angelelli
Pressed/released should work as expected, shouldn't it? Hovered is a different story though. On Thu, 07 Mar 2019 18:32:35 +0100 maitai wrote: > Hi, > > I need to trigger various actions whenever a MapPolyLine is hovered or > pressed, such as displaying a tooltip, a menu, etc. > > I have put

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-08 Thread maitai
And indeed that was it! In the MapPolyLine's MouseArea I just replaced "anchor.fill: parent" with "containmentMask: polyline" and (luckily I think) it works without any further calculations. Thanks a lot for the tip. Philippe. Le 08-03-2019 08:18, maitai a écrit : Thanks Shawn, that look

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread maitai
Thanks Shawn, that looks the best approach, I 'll give it a try. Le 07-03-2019 20:29, Shawn Rutledge a écrit : On 7 Mar 2019, at 18:32, maitai wrote: Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed, such as displaying a tooltip, a menu, etc. I have put a

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread maitai
Hi Tony, Yes in fact there is a quadtree on top of that. Philippe. Le 08-03-2019 02:31, Tony Rietwyk a écrit : Hi Philippe, Just to confirm - you are filtering your list of lines by using the bounding rectangle first, then doing the detailed line-segment check? Regards, Tony On 8/03/2019 4

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Tony Rietwyk
Hi Philippe, Just to confirm - you are filtering your list of lines by using the bounding rectangle first, then doing the detailed line-segment check? Regards, Tony On 8/03/2019 4:32 am, maitai wrote: Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed, such

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Jérôme Godbout
Sent: March 7, 2019 3:35 PM To: Interest@qt-project.org Subject: Re: [Interest] QtLocation MapPolyLine and MouseArea Yes thanks I know the maths for that, the problem being it's going to be calculated for all lines every time the user touches the mouse. Just to share here is my routine to calc

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread maitai
12:33 PM To: Interest@qt-project.org Subject: [Interest] QtLocation MapPolyLine and MouseArea Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed, such as displaying a tooltip, a menu, etc. I have put a MouseArea on it with anchors.fills: parent, but the problem is

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Shawn Rutledge
> On 7 Mar 2019, at 18:32, maitai wrote: > > Hi, > > I need to trigger various actions whenever a MapPolyLine is hovered or > pressed, such as displaying a tooltip, a menu, etc. > > I have put a MouseArea on it with anchors.fills: parent, but the problem is > that the mouse area does not rep

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Jérôme Godbout
Subject: [Interest] QtLocation MapPolyLine and MouseArea Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed, such as displaying a tooltip, a menu, etc. I have put a MouseArea on it with anchors.fills: parent, but the problem is that the mouse area does not

[Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread maitai
Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed, such as displaying a tooltip, a menu, etc. I have put a MouseArea on it with anchors.fills: parent, but the problem is that the mouse area does not represent the line, but the polygon made by the line. For in