To avoid the following error: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
when doing
X forwarding via SSH one needs to install the following (in the remote machine where you are sshing into). This also solves black screen
for me.
# This is needed in the remote machine
sudo apt-get install libegl-mesa0 libglx-mesa0