I solved the problem just now ! We should resource sharing between the Opengl contexts, and add just one line code before instantiating the QApplication like below:
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
and now I am no longer encountering this error.