plugion xcb can't be loaded
-
I am trying to run an application using QT but I am getting the following error
qt.qpa.xcb: could not connect to display
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, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
08:44:28: The program has unexpectedly finished.
My OS is Rocky 8.8. Any idea what may be the cause of this error and how can I fix it? -
Hi,
Have you tried any of the suggestions in these:
-
@fabiopires10
In addition to @Abderrahmene_Rayene, the starting move is to set environment variableQT_DEBUG_PLUGINS
to value1
and then run your program. You can do that from a terminal/shell or from Qt Creator. Then look at diagnostic output, near the end where it is failing.