qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found. This appl
在ubuntu上使用qt出现报错: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.
解决方法:
1、在运行py文件前输入:export QT_DEBUG_PLUGINS=1,然后运行py程序能够查看具体错误如下:2、此处是缺少libxcb-xinerama库
进行安装:sudo apt-get install libxcb-xinerama0