Text Qml overflow
-
Hello everybody
how can i make Text overflow hidden in Qml ?
-
Hello everybody
how can i make Text overflow hidden in Qml ?
@Malek_Khlif Do you mean text wrap ?
-
Hello everybody
how can i make Text overflow hidden in Qml ?
@Malek_Khlif For example, using this code, you'll see "very long" instead of the complete text.
Text { id: text_field height: 40 width: 40 text: "very long text" color: "red" clip: true }
You have to use the clip property.
-
@Malek_Khlif For example, using this code, you'll see "very long" instead of the complete text.
Text { id: text_field height: 40 width: 40 text: "very long text" color: "red" clip: true }
You have to use the clip property.
@tarod.net clipping is not always a good idea. It should be avoided wherever possible. Here is some more info.
Here elide can also be used instead. -
@tarod.net clipping is not always a good idea. It should be avoided wherever possible. Here is some more info.
Here elide can also be used instead. -
@Malek_Khlif For example, using this code, you'll see "very long" instead of the complete text.
Text { id: text_field height: 40 width: 40 text: "very long text" color: "red" clip: true }
You have to use the clip property.
@tarod.net Thank you very much :))))) this is what i want
-
@tarod.net Thank you very much :))))) this is what i want
@Malek_Khlif Wonderful! You're welcome! :)
Oh, by the way, please mark the post as solved.