Class: QgsSelectionContext

class qgis.core.QgsSelectionContext

Bases: sip.wrapper

Encapsulates the context of a layer selection operation.

New in version 3.28:

Methods

scale

Returns the map scale at which the selection should occur.

setScale

Sets the map scale at which the selection should occur.

scale(self) float

Returns the map scale at which the selection should occur.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also

setScale()

Return type

float

setScale(self, scale: float)

Sets the map scale at which the selection should occur.

The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.

See also

scale()

Parameters

scale (float) –