QGIS Group Layers don't have properties, probably because of that there also doesn't exist the possibility to define variables for Group layers. I use Project variables and Layer variables but also would need to define Group layer variables.
I read these variables from command line and pass them to a Openlayers web viewer. These variables define things like showing layers as WMS or WFS or which layers to make visible.
Does there exist any plugin or pyqgis code to add Group layer variables? Or is there any discussion on QGIS to add this feature to core?
group.setCustomProperty()
andgroup.getCustomProperty()
to handle Layer Group properties. I think that's an answer so if you convert your comment I would accept it. Just one more question to get a better understanding: Are these customProperties in case of layers accessible through QGIS GUI or only using pygis? In case of groups there is no Properties dialog, so I think to know the answer.