Using gl functions in QQuickView's main thread
Is there an intuitive way to enable opengl context in QQuickView's main thread?
I just need to initialize some opengl resources (generate 2D textures for later rendering).
In QQuickView, if scene graph has not been initialized, the currentContext does not exist. Is it initialized in some default function or it can be initialized manually ?
Have you pass a the Qt::AA_UseDesktopOpenGL attribute to your QApplication object at the start of the program?