今天在Ubuntu 20.04安装了Qt后
启动 qtcreator时,出现如下报错:
~ $ qtcreator
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.
Aborted (core dumped)
到处查找解决方案,发现
输入指令:
sudo apt-get install libxcb*
安装完成后,启动qtcreator成功!