Qt + WGPU skeleton
Go to file
2026-04-03 17:01:12 +03:00
src Qt+WGPU 2026-01-24 21:07:33 +03:00
test init.sh: add tests (for manual running only for now) 2026-04-03 17:01:12 +03:00
ui Qt+WGPU 2026-01-24 21:07:33 +03:00
.gitignore Qt+WGPU 2026-01-24 21:07:33 +03:00
Cargo.lock Qt+WGPU 2026-01-24 21:07:33 +03:00
Cargo.toml Qt+WGPU 2026-01-24 21:07:33 +03:00
CMakeLists.txt Qt+WGPU 2026-01-24 21:07:33 +03:00
init.sh init.sh: mark new project beginning with a commit 2026-04-03 16:59:22 +03:00
README.md add init script 2026-04-03 16:58:46 +03:00

Qt6+WGPU skeleton program

This example combines Qt6 GUI (C++) with WGPU rendering (Rust). It doesnt do much of either but its the bridging whats relevant.

Currently only X11 (XCB) is supported but it should be easy to extend to other platforms.

Usage

This program is intended as a starting point rather than a dependency, so just copy it.

  1. Fetch this code:
    • clone the repo: git clone https://gitea.noteuclid.ru/noteuclid/qt-wgpu-skel.git
    • or, download and unpack the tarball.
  2. Rename the directory to your liking
  3. Run init.sh with the project name, like:
    • ./init.sh 'My FANCY Project', or
    • ./init.sh 'My FANCY Project' 'fancy-project'.

Running init.sh without arguments prints the help.

If you want to use Qt5, change the version in both CMakeLists.txt, as well as the KF version. If you dont want to depend on KDE, remove the ECM and KF5 dependencies, as well as KColorCombo inBackground from the UI. Youll need to replace inBackground->color() with something else though.