Passing values into slint while using mcu variable #5288
Unanswered
MohaBeacon
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This should generate import { LineEdit, HorizontalBox } from "std-widgets.slint";
export component AppWindow {
in-out property <int> counter: 0;
preferred-height: 30px;
layout := HorizontalBox {
LineEdit {
enabled: false;
text: root.counter;
}
} You can pass local variables back and forth this way as you need. You could also define a Does that help? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
any example to increase counter based on push button
passing a local variable to slint ui out of slint app
Beta Was this translation helpful? Give feedback.
All reactions