Closed Quitino closed 4 years ago
According to the Qt documentation, Qt::AA_DontCheckOpenGLContextThreadAffinity
was added in Qt 5.8. Thus, it seems like the attempt to use Qt 5.9.1 probably didn't work correctly. Probably it still used the Qt 5.5.1 headers for some reason. Correctly using Qt 5.9.1 should solve the issue.
I changed to Qt5.10.1, and solved the error
modify the opengl_context_qt.cc file change the code QCoreApplication::instance()->setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity); to
// todo
QCoreApplication::instance()->setAttribute(Qt::AA_DontCheckOpenGLContextThreadAffinity);
hello @puzzlepaint Thanks for sharing the code. I met the following error when I tried to compile your code:
I have tried with QT5.5.1and Qt5.9.1 and have the above errors.Maybe I have installed the QT with errors?
Any idea of why there's such a problem? Thanks in advance!