QPainter logs in stdout

Germain Garand germain at ebooksfrance.org
Tue Jan 19 14:33:17 GMT 2010


Le lundi 18 janvier 2010, Thomas Lübking a écrit :
> Hmmm... the ScrollAreas ::paintEvent() opens the painter on it's viewprt
>
> ::widget(), but i don't grep special Qt::WA_WState_InPaintEvent handling
> :: for
>
> QAbstractScrollArea (or any gui/widgets) - sure that's legal?
>
> I mean, shouldn't the paint code be reimplemented in the actual viewport
> widget then? (i.e. in viewportEvent what oddly seems to be
> KHTMLView::widgetEvent(QEvent* e))
>

the widget() in khtmlview is there just to govern the scrollbars (i.e. to 
represent the document size), it really doesn't have any other purpose.

So no, the painting code is appropriately placed.

the thing is our needs are in-between QAbstractScrollArea (slightly too low 
level) and QScrollArea.

So we use QScrollArea in a slightly unusual, rather low-level way.

Germain




More information about the kde-core-devel mailing list