[Qgis-developer] Changing ergonomy of the visibility of layers inside groups ?

Even Rouault even.rouault at spatialys.com
Wed Nov 16 04:54:33 PST 2016

> The visualisation could still be tri-state, I think
> * Unchecked
> * Checked (All subitems checked)
> * Semi-checked (Checked but some sub-items are invisible)
> Clicking would then switch between either Unchecked and Semi-Checked or
> Unchecked and Checked depending on the subitems.

That might work indeed. It is just hard to imagine what is the more natural 
way of handling this. I couldn't find something similar in other applications
Let me think out loud to a scenario :-)

> The approach sounds good. What do you think about integrating on both
> levels (group and layer) the methods isVisible() and
> itemVisibilityChecked() methods?

If we allow isVisible() for groups, it would need to be 3 state : 
TotallyVisible, PartiallyVisible, Invisible (probably better than using the 
Checked semantics directly, so we can decorrelate from how we render partial 

Spatialys - Geospatial professional services

More information about the Qgis-developer mailing list