Can Slint and Winit be used simultaneously? #4391
Unanswered
daydaystudylab
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Slint uses winit itself, so both can't use winit. Using the private internal API, you can access the winit data scruture from the i-slint-backend-winit crate. with with_event_loop_window_target you can access the EventLoopWindowTarget needed to create new windows. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
thread 'main' panicked at src\main.rs:11:31:
called
Result::unwrap()
on anErr
value: RecreationAttempt`use slint::{LogicalPosition, WindowPosition};
use winit::dpi::LogicalSize;
use winit::event_loop::EventLoop;
use winit::window::WindowBuilder;
slint::include_modules!();
fn main() {
}
`
Beta Was this translation helpful? Give feedback.
All reactions