---
title: "Qt Backend"
description: "Qt Backend"
---
import Link from '@slint/common-files/src/components/Link.astro';
import LangRefLink from '@slint/common-files/src/components/LangRefLink.astro';
import { Tabs, TabItem } from '@astrojs/starlight/components';
// cSpell: ignore qttype qttypes


The Qt backend uses the [Qt](https://www.qt.io) library to interact with the windowing system, for
rendering, as well as widget style for a native look and feel.

The Qt backend supports practically all relevant operating systems and windowing systems, including
macOS, Windows, Linux with Wayland and X11, and direct full-screen rendering via KMS or proprietary drivers.

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 Qt backend is not enabled by default:

<Tabs syncKey="dev-language">
<TabItem label="Rust" icon="seti:rust">
With Rust, enable the <LangRefLink lang="rust-slint" relpath="docs/cargo_features/">`backend-qt`</LangRefLink> feature.
</TabItem>
<TabItem label="C++" icon="seti:cpp">
When building Slint from source, turn on the <LangRefLink lang="cpp" relpath="cmake/#features">`SLINT_FEATURE_BACKEND_QT`</LangRefLink> CMake option.
</TabItem>
</Tabs>

The compilation step will detect whether Qt is installed or not using the qttypes 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.

## Configuration Options

The Qt backend reads and interprets the following environment variables:

| Name               | Accepted Values | Description                                                        |
|--------------------|-----------------|--------------------------------------------------------------------|
| `SLINT_FULLSCREEN` | any value       | If this variable is set, every window is shown in fullscreen mode. |