I have a model/view that works fine but I want to switch to using a QGLWidget to do the rendering for various reasons. My QGLWidget based class renders fine when used in a normal widget fashion but when I use setViewport to make it the renderer in the QAbstractItemView based class, the viewport shows up blank instead of the contents of the QGLWidget based class.

What am I doing wrong?

note: I need to use all the fancy things QAbstractItemView provides, so switching to a different type would be a poor choice.