QPainter works on a QPaintDevice. QGLWidget is a QPaintDevice. "Subsection of QGLWidget" is not a QPaintDevice.
How does your complete paintGL() implementation look like and why are you subclassing QPainter? Doesn't the white colour come from setting the OpenGL fill colour to white?






Reply With Quote

Bookmarks