I have a vector layer in QGIS. I have added a bunch of rule for this layer. This is the
QDockWidget for layer in QGIS main window.
So each of interstate, divided, secondary is different rule added using
All the rule have the check box where I can manually toggle the visibility of the layer. Is there any way I can toggle this using python?
I tried to use layer tree
root = QgsProject.instance().layerTreeRoot() for child in root.children(): print type(child), child.layerName(), child.children()
child.children is returning empty list instead of those rules.
Type of Road Network is