Print ("Widget context format version: " + str(myW.context().format().majorVersion())) Print ("Widget format version: " + str(myW.format().majorVersion()))
Print ("Widget context valid: " + str(myW.context().isValid()))
Print("Format version: " + str(glFormat.majorVersion())) I have been experimenting a lot - here is a very simple example that shows my problem: from PyQt4 import QtGui, QtCore, QtOpenGL If I try to force it, it tells me that the context is not valid. I'm trying to pass a QGLFormat to my QGLWidget, as I've seen done on many threads here, but the context version does not change.
However, according to my research and to OpenGL Extension Viewer, I should be able to use OpenGL 4.1.