QT报错:Could not load the Qt platform plugin "xcb" in "" even though it was found

1.报错信息:

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: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

2.解决方法(deepseek给的解决方法之一)

sudo apt install libxcb-xinerama0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinput0 libxcb-xfixes0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcb-xkb1 libxkbcommon-x11-0 libxcb-util1

deepseek给力。

posted @ 2025-07-25 19:34  Desmend  阅读(439)  评论(0)    收藏  举报