A custom carousel widget that can be controlled by touch, mouse and keyboard
The example can be run on desktop, wasm and mcu platforms
.slint Design |
Rust Source | C++ Source | Node Source | Online wasm Preview | Open in SlintPad |
---|---|---|---|---|---|
ui.slint |
main.rs |
main.cpp |
main.js |
Online simulation | Preview in Online Code Editor |
See the MCU backend Readme to see how to run the example on a smaller device like the Raspberry Pi Pico.
The example can run with the mcu simulator with the following command
cargo run -p carousel --no-default-features --features=simulator --release