0

How can i set a projectproperty with a python plugin? I like to activate the legendfilter for Nodes with existing feature.

Martin
  • 2,908
  • 4
  • 22
  • 44
norbert
  • 1
  • 1

1 Answers1

1

I think this should be a comment but I have not enough rep.

This answer might help you. You need to use the QgsProject class which has a writeEntry() member function. You can get the current project with QgsProject.instance().

ArMoraer
  • 5,649
  • 2
  • 26
  • 48