From 41c2ca2e42aa75baeeab41dff43f9e26a21fbb43 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 17 Nov 2010 13:35:50 +0000 Subject: [PATCH] Item index method of the Graphics Scene is set to NoIndex (instead of default BspTreeIndex, which leads to crashes in QGraphicsView::paintEvent() method) --- src/GraphicsView/GraphicsView_ViewPort.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index 3dd2b6bec..ba6c5978e 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -106,6 +106,10 @@ GraphicsView_ViewPort::GraphicsView_ViewPort( QWidget* theParent ) myForegroundFrameColor = Qt::black; myForegroundFrameLineWidth = 1.0; + // default index method (BspTreeIndex) leads to + // crashes in QGraphicsView::paintEvent() method + myScene->setItemIndexMethod( QGraphicsScene::NoIndex ); + // render hints (default - TextAntialiasing only) setRenderHints( QPainter::Antialiasing | QPainter::TextAntialiasing | -- 2.39.2