Change color of polygon when setting point into it

I have several polygons. When a point is placed inside a polygon, it should turn red. I can achieve this with rule-based styling, but it only works for the current state when I set the formatting or manually refresh. I would like the polygon to change color the moment I place a point inside it. Is that possible?


Imported from GitHub discussion by @Grizou79 on 2024-11-06T12:15:42Z

It is possible…it already worked, just made a mistake…


Imported from GitHub comment by @Grizou79 on 2024-11-08T11:00:58Z