[Qgis-user] Issue with QgsLayerTreeNode.itemVisibilityChecked

Patrick Dunford enzedrailmaps at gmail.com
Tue May 23 01:12:40 PDT 2023


Strange, I thought I had already tried that.

Thanks!

On 23/05/23 15:47, David Strip wrote:
> On 5/22/2023 7:44 PM, Patrick Dunford via QGIS-User wrote:
>>
>> extentGroup = root.findGroup(extentGroupName)
>> extentLayers = extentGroup.children()
>> for extentLayer in extentLayers:
>>     if extentLayer.itemVisibilityChecked:
>>         print (extentLayer.name()) 
>
> shouldn't that be
>      if extentLayer.itemVisibilityChecked():
> (note the addition of parens after the method name).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230523/46e93b39/attachment.htm>


More information about the QGIS-User mailing list