On Thu, 8 Nov 2018 at 17:02, Raymond Nijssen <[email protected]> wrote: > > In the python api, QgsLayoutItems have a setter for the visibility, but > i cannot find a way to retrieve the visibility setting. > > https://qgis.org/pyqgis/master/core/Layout/QgsLayoutItem.html > > > I would like to do this: > > item = QgsLayoutItemLabel() # I get this from my layout > checkbox.setChecked(item.visibility()) # this fails
item.isVisible() It's from the base QGraphicsItem class. Nyall _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
