Skip to main content
1 of 3
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

What does a 'context' mean in PyQGIS

When writing PyQGIS scripts, especially processing script and expression function, I come across the term context. I use it, but I don't know what all contexts mean actually.

There are also Qgs***Context classes. For example, QgsExpressionContext, QgsSymbolWidgetContext, QgsGeometryCheckContext, QgsAttributeEditorContext, ... .

What does context refer in all those class names and in some methods in PyQGIS?

Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404