Qt Wayland
Display server
To utilize Wayland for Qt-based applications install the qt5-wayland
and qt6-wayland
packages. Optionally, also install qt5ct
and qt6ct
if you're on a non-KDE desktop environment.
Then set the QT_QPA_PLATFORM
environment variable to:
-
wayland
for the wayland plugin -
xcb
for the X11 plugin -
qt6ct
for running Qt6-based applications on non-KDE desktop environments -
qt5ct
for running Qt5-based applications on non-KDE desktop environments
TIP: It may prove useful to set multiple values separated by ;
. In case one is not available, the next one is used.
QT_QPA_PLATFORM="wayland;qt5ct;xcb"
Use KDE dialogs
If some applications (e.g. Telegram) don't use default KDE dialogs, set the following environment variable:
QT_QPA_PLATFORMTHEME="flatpak"