ConstStar
发布于 2023-11-17 / 75 阅读 / 0 评论 / 0 点赞

qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.

问题

pyside6在linux中运行提示

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, linuxfb, xcb, wayland, eglfs, wayland-egl, vkkhrdisplay, minimalegl, vnc.

解决方法

sudo apt install libxcb-xinerama0 
sudo apt-get install libxcb-cursor0

评论