I’m using GNOME in the Wayland session but I like to use a few Qt (actually, KDE) applications like the text editor Kate. They look quite ugly in the GNOME Wayland session and they can be hardly resized. As a solution, I put
# for KDE applications in GNOME Wayland to be resizable
export QT_QPA_PLATFORM=xcb
in /etc/environment to force Qt applications to use X11, but it looks like a radical solution…
Ok, thanks. Last time I tried setting that variable in the user’s environment that variable wasn’t picked up… maybe I did something wrong back then. I’ll keep you posted.
OK, so I have to put the environment variable in ~/.zshenv and then it’s picked up by the desktop environment. However, I can only use “xcb”: although the qgnomeplatform-qt6 and qgnomeplatform-qt5 were already correctly installed, I cannot use “gnome” for that variable (as suggested here), because I have this error:
qt.qpa.plugin: Could not find the Qt platform plugin "gnome" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Opps… you’re right… in any case, setting the platform theme to gnome doesn’t change anything visually and the platform set to xcb is still required anyway.