How to use Qt backend on Linux? #9618
-
|
I'd like to use the Qt backend & renderer (dynamically linked?) so I can ship my app to Qt environments. Initially I tried but this fails to build due to a missing but on launch I just get This page says "enable one of the How do I enable only the Qt backend? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
I think you're doing everything correctly. The OpenGL build issue is a bug, but it should be okay to leave out "renderer-femtovg" from the features. "backend-qt" comes with a backend and a renderer. The runtime error message suggests that perhaps Qt could not be found at build time. If you run |
Beta Was this translation helpful? Give feedback.
-
|
Didn't work doesn't link to qt: no platform: Cargo.toml: slint = { version = "1.13.1", default-features = false, features = ["backend-qt", "std", "compat-1-2", "renderer-femtovg"] }
i-slint-renderer-femtovg = { version = "1.13.1", features = ["opengl"] }main.rs use slint::{self, Model, ModelExt, VecModel};
slint::include_modules!();
fn main() -> Result<(), Box<dyn Error>> {
let ui = AppWindow::new()?;
// ...
} |
Beta Was this translation helpful? Give feedback.
Can you check the log of the
qttypesbuild script?They should be in
target/debug/build/qttypes-xxxxx/outputorstderr(where xxxxx is some random hash)