[Qgis-user] Toggle Attribute

Jésahel Benoist djes1975 at gmail.com
Sun Nov 22 06:56:54 PST 2020


Can't you just use layer's actions?

djes

Le dim. 22 nov. 2020 à 08:43, Bernd Vogelgesang <bernd.vogelgesang at gmx.de>
a écrit :

> I had a similiar use case, see here:
> https://gis.stackexchange.com/q/322544/8202
>
> Unfortunately, I just noticed the answer on my post then right now, so I
> did not dig any deeper.
>
> Basic thing is, that you can establish a "connection" between two layers
> by an "aggregate" function.
>
> But how to use that to change the style on e.g. a hover, is still beyond
> my capabilities, but I'm prettey sure there  is some clever way to
> accomplish that. Sadly, I'm not that clever. Maybe something with rule
> based style?
>
> Cheers,
>
> Bernd
>
> On 21.11.20 11:51, L.W. wrote:
> > Hi,
> >
> > is there a way to have a feature on map and when I press/click/hover on
> > it that some event is raised?
> >
> > Primary I want to toggle an attribute field true/false.
> >
> > I than will e.g. display a special symbol(layer) to an other feature.
> >
> > Example: Feature A has a foreign key to Feaure B, when B is hovered then
> > A's symbol should be yellow instead of green.
> >
> > Regards
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20201122/90e1c6b3/attachment.html>


More information about the Qgis-user mailing list