failed to initialize XrandR
-
I am develop my application in Ubuntu(without display) with QT5.15.2
But when i click theRun
. The Qt Creator build fail and tell me:qt.qpa.xcb: failed to initialize XRandr qt.qpa.xcb: XKeyboard extension not present on the X server
By the way, I am using
xrdp
to operate the remote server. I try many methods, but they not work for me. What should I do? Give me advise. -
@coonal
just a shot in the dark:
If its a QML application try to run the Qt app with SW renderer and not OpenGL backend
(e.g. via env var:QT_QUICK_BACKEND="software"
) -
@raven-worx said in failed to initialize XrandR:
QT_QUICK_BACKEND="software"
That did not work. I continue to see this error w/PyQt5 on RHEL8:
qt.qpa.xcb: failed to initialize XRandr
qt.qpa.xcb: X server does not support XInput 2
qt.qpa.xcb: QXcbConnection: XCB error: 1 (BadRequest), sequence: 169, resource id: 53, major code: 131 (Unknown), minor code: 47 -
@brookbot said in failed to initialize XrandR:
qt.qpa.xcb: failed to initialize XRandr
What does
xrandr -q
show you?