Hi,

I'm looking for a way to limit the size of a Text element whatever the
length of this text. For now, if a text is bigger than the size of his
contain, we can seen it outside of the area defined. Does qml provided a way
to solve this ?

import Qt 4.7
>
> Rectangle{
>   height: 100;
>   width: 300;
>   color: "green";
>
>   Rectangle{
>     height: 50;
>     width: 100;
>     color: "red";
>     x: 50;
>     y: 30;
>        Text{
>      text: "Hello world !";
>          anchors.horizontalCenter: parent.horizontalCenter;
>      color: "white";
>      font.pointSize: 20;
>      font.family: "DejaVuSans";
>      smooth: true;
>
>        }
>   }
> }
>

Thanks

-----------------------------------------------------
Thomas PABST
thomas.pa...@gmail.com
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to