You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you just want to use these crates, add them as dependencies to your `Cargo.toml`, for example:
15
20
16
-
Published crates required a certain Qt version (currently 5.8) and don't export platform-specific API.
21
+
```
22
+
[dependencies]
23
+
qt_widgets = "0.2"
24
+
```
25
+
26
+
And add corresponding `extern crate` directives to the crate root (`main.rs` or `lib.rs`):
27
+
28
+
```
29
+
extern crate qt_widgets;
30
+
```
31
+
32
+
Each crate re-exports its depenencies, so, for example, you can access `qt_core` as `qt_widgets::qt_core` without adding an explicit dependency.
33
+
34
+
[Online documentation](https://rust-qt.github.io/rustdoc/qt/qt_core) of published Qt crates (you may also run `cargo doc --open` to generate documentation for your crate's dependencies).
35
+
36
+
Published crates required a certain Qt version (currently 5.8.0) and don't export platform-specific API.
37
+
38
+
## Using the generator
17
39
18
40
If you want to use another Qt version, access platform-specific Qt APIs or tweak the generator configuration, refer to README of [qt_generator](https://github.com/rust-qt/cpp_to_rust/tree/master/qt_generator/qt_generator) for more information.
0 commit comments