In ArcGIS, when one clicks a feature with the identify
tool, it will flash/flicker, which makes the feature really easy to see for a moment. Reportedly, there is also a flash
method in its ArcObject API.
Is there a way to flash a set of selected feature to the same effect with PyQGIS (2.x or 3.0)?
I searched around, and couldn't find any mention of this or examples
Best Answer
We can build a
flashFeatures
method in this way (give it a try in the QGIS Python Console):Call
flashFeatures
method passing it selected features Ids (activate first your layer in the Layers panel):If you want to flash features each time they are selected, you could use: