How can I use the same OpenGL context for multiple QGraphicsView windows?

Is there a restricted version of OpenGL profile I have to use or can I specify whatever version? Can I use GLEW?

Thanks.