2

I'm currently working on a QGIS plugin which uses the selected items of a vector layer containing only points. Using the current selection is quite easy but I need to react in real time to a change in the selection.

How can i do that without creating a custom selection tool. I haven't found anything in the developper cookbook or on google.

Ahsan Mukhtar
  • 2,281
  • 9
  • 31
Welteam
  • 33
  • 3

1 Answers1

0

You can use the selectionChanged signal like mentionned in this post :

How to define an event for features selected in mapcanvas in qgis using python

Sociabilis
  • 79
  • 4
  • Thank you! Now I don't even know how I missed the whole signal part of the python API after the time I spent in it ^^' – Welteam May 24 '19 at 07:44