This can be done with an 'Action'. I was able to do it with a bit of PyQGIS
code. Change the point_layer_name in the snippet below to match your point
name. Define the Action on the line layer. Here's how it works
https://ibb.co/vP7KRDd
line_layer = QgsProject.instance().mapLayer('[% @layer_id
I was very interested to see if this was possible with qgis expressions and
symbology, and I got it to work with surprisingly little effort, albeit
with some issues [1].
I simply used the rule based symbology to highlight the relevant features
using an expression [2].
The expression I used was
I need a tool that allows me to draw a line and that at the same time
highlights points within a certain distance (for example 40 meters).
I have a map with hundreds of points, I would like when I draw a line what
is nearby will light up.
There is a specific tool to do this or a simple "magnet"