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 appl
解决方法:
1、在运行py文件前输入:export QT_DEBUG_PLUGINS=1,然后运行py程序能够查看具体错误如下:
2、此处是缺少libxcb-xinerama库

qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found. This appl
进行安装:sudo apt-get install libxcb-xinerama0

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

再次执行

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

启动

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

上一篇:如何使用XCB绘制标题栏


下一篇:mysql性能的检查和优化方法