As I installed Ubuntu 22.04
and Qt 6.5.2
, I encountered an error that prevented any of my projects from running, and it did not display the output as expected.
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: vnc, minimal, wayland-egl, offscreen, xcb, vkkhrdisplay, eglfs, minimalegl, linuxfb, wayland.
I checked the /home/username/Qt/6.5.2/gcc_64/plugins/platforms/
path and underestand that all files were correct.
I also try:
export QT_QPA_PLATFORM_PLUGIN_PATH=/home/username/Qt/6.5.2/gcc_64/plugins/platforms/
But it didnt help.