[Qt-interest] opengl on MDI subwindow?

Rui Maciel rui.maciel at gmail.com
Thu Nov 19 18:27:45 CET 2009


Bradley Smith wrote:

> I don't see anything wrong with the code you provided. Can you provide
> a complete code example which still displays those messages?

That's odd. I've picked up Qt's mdi example (the one in the repositories, which appears to be a bit more 
elaborated than the one in the site) intending to plug in a opengl widget but right on the first compilation, 
still with the original code, the following stream of error messages popped up:

<messages>
QPainter::begin: Cannot paint on a null pixmap
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::setPen: Painter not active
QPainter::end: Painter not active, aborted
</messages>

Does this signal some sort of bug? 


Rui Maciel



More information about the Qt-interest-old mailing list