79774118

Date: 2025-09-24 20:03:03
Score: 1
Natty:
Report link

This problem has been solved.

I jumped out of the limitation of Qt (getNativeHandle) and directly used the interface provided by EGL to obtain the context and display (eglGetCurrentDisplay/eglGetCurrentContext) in the context state created by Qt.

makeQtCurrent();
auto eglDisplay = eglGetCurrentDisplay();
auto eglContext = eglGetCurrentContext();
doneQtCurrent():

I have checked Qt documentation, and in fact, I am using Qt 5, which does not yet support QNativeInterface::QEGLContext.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: SweerItTer