Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt 5 use EGL backend for XCB

Tags:

qt

qt5

xcb

glx

egl

I am having some tearing issues with embedded Qt 5 with the XCB backend. I have just realized that perhaps this causes it to default to GLX and I have heard that one has a far greater chance of eliminating tearing using EGL. I also know that Qt has an EGL backend for XCB but I have no idea how to switch between the two. What configuration or runtime flags can I use to force it to use the one instead of the other?

like image 560
Gerharddc Avatar asked Aug 30 '25 18:08

Gerharddc


1 Answers

Set the QT_XCB_GL_INTEGRATION env variable to xcb_egl.

I don't see why this would eliminate tearing, which is instead typically created by lack of vsync, but there's that...

like image 179
peppe Avatar answered Sep 02 '25 12:09

peppe