Geographic Information Systems Asked on March 13, 2021
QGIS API provides QgsExpressionContextUtils
to set project properties.
But in the class, there isn’t any signal.
I hope to connect to a signal whenever some of the properties were changed.
So is there a way to implement this?
Yes, there is a way. It's the customVariablesChanged
signal from QgsProject
.
def my_slot():
print("A project variable was just changed!")
QgsProject.instance().customVariablesChanged.connect(my_slot)
Correct answer by Germán Carrillo on March 13, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP