Let Text widget self-layout its width and read the width in Rust? #3219
-
I need to implement an endless Text-Scroll in Slint. Easy solution: Put the string twice in a Here is the problem: As soon as the How can I force Slint to layout the Slint-Code: in-out property <length> offset_x: -10px;
// Also not working if I don't define `100px`, it's 0 then.
out property <length> out_width: 100px;
Text {
x: offset_x;
width: out_width;
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Give a name to the text and use a binding from the out property rather than the other way.
|
Beta Was this translation helpful? Give feedback.
Give a name to the text and use a binding from the out property rather than the other way.
eg: