Class: QgsSelectionContext

Encapsulates the context of a layer selection operation.

Added in version 3.28.

class qgis.core.QgsSelectionContext[source]

Bases: object

scale(self) float[source]

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)[source]

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)