--- chatview.cpp.old 2008-08-31 18:46:45.000000000 +0000 +++ chatview.cpp 2008-08-31 18:46:49.000000000 +0000 @@ -50,6 +50,15 @@ setAlignment(Qt::AlignBottom); setInteractive(true); + // We don't need any of those as we just draw text and horizontal/vertical lines. + setOptimizationFlag(QGraphicsView::DontClipPainter); + setOptimizationFlag(QGraphicsView::DontSavePainterState); + setOptimizationFlag(QGraphicsView::DontAdjustForAntialiasing); + + // Not sure which of these two is the fastest. + //setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate); + setViewportUpdateMode(QGraphicsView::SmartViewportUpdate); + _scene = new ChatScene(filter, filter->idString(), viewport()->width() - 2, this); // see below: resizeEvent() connect(_scene, SIGNAL(sceneHeightChanged(qreal)), this, SLOT(sceneHeightChanged(qreal))); setScene(_scene);