On Thu, 8 Nov 2018 at 17:18, Raymond Nijssen <r.nijs...@terglobo.nl> wrote:

> I'm also using setVisible() now, instead of setVisibility(). But now I
> wonder why the latter exists.

Check the API dox -- there's a specific note there that you need to
call setVisibility instead of setVisible, or visiblity won't work
correctly for some items (like groups).

(Unfortunately QGraphicsItem::setVisible is not virtual, so we can't
override that... hence the ugly api here).

Nyall
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to