#1061166 qt6-gtk-platformtheme: GTK Theme not applied on wayland unless QT_QPA_PLATFORM=xcb is set

Package:
qt6-gtk-platformtheme
Source:
qt6-gtk-platformtheme
Description:
Qt 6 GTK+ 3 platform theme
Submitter:
Kostadin Shishmanov
Date:
2024-01-20 01:27:03 UTC
Severity:
normal
#1061166#5
Date:
2024-01-20 01:22:16 UTC
From:
To:
Dear Maintainer,

When using Gnome/Wayland, if you install qt6-gtk-platformtheme, and try to run
qbittorrent for example, you can notice that it's using a generic qt6 theme,
and not the one that the system is using. Cursor size is also messed up. This
can be worked around by setting `QT_QPA_PLATFORM=xcb`. The environmental
variable is not needed when using X11.

Steps to reproduce:
1. Have a working GNOME setup
2. Log into a wayland session
3. Install qt6-gtk-platformtheme and qbittorrent
4. Run qbittorrent and notice that the theme is all messed up.
5. Try running it as follows: `QT_QPA_PLATFORM=xcb qbittorrent` or start it
from an X11 session, and notice that the proper theming is applied.