What is needed to make plugin settings persistent?

I have a small plugin that needs one persistent setting (string). I can add an xml config file to my build (via SERVER_MANAGER_XML) and the new setting appears in the pqSettingsDialog, and I can get/set its value via vtkSMSettings. However, the value is not stored, but is reset each time I restart the app.

It is not obvious to me how ParaView handles properties specified this way. I tried adding the SaveInQSettings hint in the ProxySettings xml element, but that didn’t make any difference.

Right now, the plugin doesn’t have any vtiObject classes nor any vtk module. Do I need to add either/both?

Hi @johnt

What you describe should work, here is a fonctionnal example:

Hth.