You are not logged in.

#1 2023-03-11 19:52:07

iFlxy
Member
Registered: 2023-01-07
Posts: 20

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Hi

I've been having issues with many QT apps launching on xwayland instead of wayland. I tried installing qt5 and qt6 packages and using QT_QPA_PLATFORM=wayland, but it changed nothing. I'm still getting this error in many QT apps.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" 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: xcb.

journalctl: http://0x0.st/Hi4n.txt
It's weird that in some apps wayland QT works just fine. I tried searching the internet in order to find a solution, but most of them just suggested installing qt5-wayland/qt6-wayland.

Thanks in advance.

Offline

#2 2023-03-11 22:22:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,358

Re: qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

suggested installing qt5-wayland/qt6-wayland

And in light of

Available platform plugins are: xcb.

that's what yu should do.

Also

issues with many Qt apps

: please list some. And also some that do work.

Offline

#3 2023-03-12 08:29:26

iFlxy
Member
Registered: 2023-01-07
Posts: 20

Re: qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Alright,
Some apps that don't work: TeamViewer, DaVinci Resolve, Shotcut
An app that works: obs

I have qt6-wayland and qt5-wayland installed.

Last edited by iFlxy (2023-03-12 08:30:50)

Offline

#4 2023-03-12 09:59:41

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

Proprietary apps usually don't use system Qt but instead ship their own copy of Qt, and often don't include the wayland plugin.

You simply can't run these applications on wayland; you just have to use xwayland.

You can try to bug vendors to include wayland support, but likely with limited success.

Offline

Board footer

Powered by FluxBB