[SailfishDevel] How to properly hide and show UI elements?

Marcin M. marmistrzmar at gmail.com
Fri Jul 18 17:36:07 UTC 2014


Oh, right. It was so trivial. I totally forgot about it. Thanks!

--
Marcin


2014-07-18 17:10 GMT+02:00 Tomasz Sterna <tomek at xiaoka.com>:

> Dnia 2014-07-18, pią o godzinie 16:31 +0200, Marcin M. pisze:
> > The Rectangle hides and so Button's label does. It doesn't work with
> > the Button. And after enabling and disabling the effect is similar as
> > previously. The button doesn't react if clicked. Seems I'll have go
> > for opacity, still the question is: why are these elements still
> > shown?
>
> QML Item does not clip by default.
> It allows for its children to draw outside Item boundaries. It's faster
> and usually useful.
>
> If you want an Item to clip its children, you need to set the property
> clip [1] to 'true'.
>
>
> [1] http://qt-project.org/doc/qt-5/qml-qtquick-item.html#clip-prop
>
>
> --
> Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140718/680a1984/attachment.html>


More information about the Devel mailing list