> 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
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
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
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
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
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
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
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
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
> 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
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
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
12 matches
Mail list logo