Use eglChooseConfig in QT. Because my app uses eglSwapBuffers(sEGLDisplay, sEGLSurface);

I am new to EGL and I have to use libEgl.lib on one of my projects. We are using QT Creator as the IDE.
When running the application it returns “num_config” as zero in eglChooseConfig function. But the same code runs without any issue in visual studio. Could somebody guide me on this whether there is any dependency for the EGL library.