back

by toddmorey·2y ago·view on hn ↗
Why in a QML file do you set the scale to 0 vs 1? How do you scale down, for example?

Edit: was told if you want to hide an element without removing it, setting the scale to 0 could work, but it's more common to use the visibility property, setting it to "false" or "invisible".

1 comments
Looks like the example code does an eased animation on scale. So it makes the widget zoom into view instead of just appearing.