I would like to set visibility of a layer group and all of its children (and grand-children and so on...) using PyQGIS (QGIS 2.14.1).
Assume the groups name is g0 with subgroups g0[1...n] and subsub...groups g0[1...n][1...n][...].
sets the group and ALL what comes beneath invisible, so far so good:
But vice versa
sets the group visible and leaves all its children untouched, wich results in nothing visible at all:
only touches the direct children and not recursively all the descendants:
I wonder why manually setting the root groups (g0) visibility does result in recursively setting the visibility of all beneath it at all.
Question: Do I have to implement some recursive function to set the visibility of a group and its whole big family, or is there a more convenient way to accomplish this? Or is here something buggy?