Linux Requirements:
- rust
- qt5-base
- gcc
- cmake
[package] | |
name = "hello_world" | |
version = "0.1.0" | |
edition = "2018" | |
[dependencies] | |
qt_core = "*" | |
qt_gui = "*" | |
qt_widgets = "*" |
#![windows_subsystem = "windows"] | |
use qt_widgets::{ | |
qt_core::QString, | |
QApplication, | |
QLabel, | |
}; | |
fn main() { | |
QApplication::init(|_| unsafe { | |
let mut label = QLabel::from_q_string(&QString::from_std_str("Hello World")); | |
label.show(); | |
QApplication::exec() | |
}) | |
} |