I got this exact error on Linux Xubuntu 18.04
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)
First, defining this environment variable before starting qtcreator from the command line leads to additional debugging output:
export QT_DEBUG_PLUGINS=1
And then in debugging he said this while trying to run qtcreator from the command line on xubuntu 18.04:
Cannot load library /home/myuser/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
Note that it cannot find libxkbcommon-x11, so the fix was as follows:
sudo apt-get install libxkbcommon-x11-dev export PATH=$PATH:~/Qt/Tools/QtCreator/bin
Qtcreator now starts.
source share