From: ouv Date: Wed, 17 Nov 2010 13:35:50 +0000 (+0000) Subject: Item index method of the Graphics Scene is set to NoIndex (instead of default BspTree... X-Git-Tag: DIAGRAM_0_1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41c2ca2e42aa75baeeab41dff43f9e26a21fbb43;p=modules%2Fgui.git Item index method of the Graphics Scene is set to NoIndex (instead of default BspTreeIndex, which leads to crashes in QGraphicsView::paintEvent() method) --- 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 |