C++ (Qt)view->setOptimizationFlags( QGraphicsView::DontClipPainter | QGraphicsView::DontSavePainterState | QGraphicsView::DontAdjustForAntialiasing );view->setViewportUpdateMode( QGraphicsView::BoundingRectViewportUpdate );