[SailfishDevel] how can i "contain" text items properly?

Lucien Xu sfietkonstantin at free.fr
Wed Oct 28 09:26:16 UTC 2015


Hello Alexander, 

I'm not sure to understand exactly what you need, but you might want to take a look at the "clip" property of the Item component (base of all graphical components in QtQuick) 

http://doc.qt.io/qt-5/qml-qtquick-item.html#clip-prop 

Regards, 
Lucien 

----- Mail original -----

> De: "Alexander Ladygin" <fake.ae at gmail.com>
> À: "Sailfish OS Developers" <devel at lists.sailfishos.org>
> Envoyé: Mercredi 28 Octobre 2015 10:18:19
> Objet: [SailfishDevel] how can i "contain" text items properly?

> Hello there sailors!

> When using SilicaListView inside some other items, content of
> ListView often goes over the boundaries and overlaps with items
> outside. You can also see that behaviour with Label when you set
> negative text offset (text will go to the left, and if your Label is
> not anchored to the left side of the screen, its text will go
> outside of Label item)
> What i expect is to any text going outside of bounderies of such
> items to disappear.
> What is the proper way to do that?

> Alex.

> _______________________________________________
> 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/20151028/8b45200d/attachment.html>


More information about the Devel mailing list