qt.qpa.xcb: could not connect to display :0
-
@SSJCarti
One thing: It seems to me there is a related discussion going on in https://forum.qt.io/topic/120349/run-qt-gui-application-inside-docker. I assume that Poster is not yourself too. At least, that seems to get the same message as you do:loaded library "/home/user/app/platforms/libqxcb.so"
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.So maybe worth a look?
EDIT @Pablo-J-Rogina has said below this would not be helpful to you, so don't! :)
-
@JonB said in qt.qpa.xcb: could not connect to display :0:
So maybe worth a look?
I don't think the goals/environments are the same... I'd say it will mislead OP here
-
@Pablo-J-Rogina so is my Xlaunch a xserver?
-
@SSJCarti said in qt.qpa.xcb: could not connect to display :0:
is my Xlaunch a xserver?
Once again, you failed to provided a link to such component/application... Make life easier for the ones that may help you.
If you're referring to this Xlaunch, I'm not familiar with it but from its documentation it is not an X server:
XLaunch is a wizard to make starting X server sessions easy
In addition, have you checked the videos I suggested?
-
@Pablo-J-Rogina I do not know what an xserver is, I am very new to this whole type of stuff
-
@SSJCarti said in qt.qpa.xcb: could not connect to display :0:
what an xserver is
I guess you'll find lots of references, documentation, tutorials about the X windowing system.
One of the videos I linked before does a good job at describing the purpose and some details of an X server. -
In my case I was using PyQt5 in a docker container. Even though
i forwarded my DISPLAY variable and X11-unix path, it didn't seem to find the display.The solution for me was running
xhost +local:*
in the terminal of the host (outside of the container), to allow the server connection to be used by the container. -
@BertChristiaens I created an account just to say that this is exactly what I was looking for! After hours of sifting through online forums trying to find a solution to this problem, this is the one that worked like a charm! Thank you good sir!
-
This post is deleted!