Improve docs about backend and render selection

This commit is contained in:
Olivier Goffart 2024-05-07 11:31:36 +02:00 committed by GitHub
parent 2e3b00e38e
commit e1f6c48958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -10,6 +10,12 @@ macOS, Windows, Linux with Wayland and X11, and direct full-screen rendering via
The Qt backend only supports software rendering at the moment. That means it runs with any graphics driver,
but it does not utilize GPU hardware acceleration.
The compilation step will detect whether Qt is installed or not using the qttype crate.
See the instructions in the [qttypes documentation](https://docs.rs/qttypes/latest/qttypes/#finding-qt)
on how to set environment variables to point to the Qt installation.
If Qt is not installed, the backend will be disabled, and Slint will fallback to another backend, usually the [Winit backend](backend_winit.md).
## Configuration Options
The Qt backend reads and interprets the following environment variables:

View file

@ -18,6 +18,9 @@ The Winit backend supports different renderers. They can be explicitly selected
| Skia OpenGL | OpenGL rendering with Skia | `winit-skia-opengl` |
| software | Software-rendering, no GPU required | `winit-software` |
If no renderer is explicitly set, the backend will first try to use the Skia renderer, if it was enabled at compile time.
If that fails, it will fall back to the FemtoVG renderer, and if that also fails, it will use the software renderer.
## Configuration Options