I've managed this with Qt 4.6.2 but for some reason it only shows a blank screen when I moved to Qt4.7.

Does anyone know of an example of a GLWidget which uses OpenGL ES 2.0 and overlays a QPainter please? I've seen other permutations (e.g. QPainter and non-OGLES2.0) but not yet one that covers OGELS2.0 and a QPainter overlay simultaneously.

I suspect my problem is related to how the two interact and would like to see an overlay example in operation.

I've posted the code I'm using with Qt4.7 below in case it helps understand my problem (it's based on the Qt 'Cube' example). If I remove the QPainter references it displays the 3D model fine.