Could not load the Qt platform plugin "xcb
-
if calling system("~/Qt/Tools/QtCreator/bin/qtcreator /home/supernova/Desktop/MPU/MPU.pro &");
getting output below:
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
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: minimalegl, offscreen, wayland-egl, linuxfb, minimal, vkkhrdisplay, wayland, xcb, vnc, eglfs.
-
Hi,
Are you running your Desktop Environment on Wayland as the error message suggests ? If so, do as suggested and use the wayland QPA.
If not, start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to see exactly why the xcb loading fails.