isEnabled property

bool get isEnabled

True to enable snapping to the geometries in the SnapSource, false otherwise. Default is false.

Snapping sources can be enabled or disabled individually. If SnapSettings.isEnabled or SnapSettings.isFeatureSnappingEnabled are false, this value is ignored and interactive snapping is not enabled to this SnapSource.

If rule-based snapping is configured, this value is affected by the value of SnapSourceEnablingBehavior passed to SnapSettings.syncSourceSettings(SnapRules, SnapSourceEnablingBehavior). In this case, SnapSourceSettings.ruleBehavior also affects if interactive snapping occurs for this snap source, and which parts of the snap source can be snapped to. See SnapRules for more information about configuring rule-based snapping.

set isEnabled (bool value)