]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Item index method of the Graphics Scene is set to NoIndex (instead of default BspTree...
authorouv <ouv@opencascade.com>
Wed, 17 Nov 2010 13:35:50 +0000 (13:35 +0000)
committerouv <ouv@opencascade.com>
Wed, 17 Nov 2010 13:35:50 +0000 (13:35 +0000)
src/GraphicsView/GraphicsView_ViewPort.cxx

index 3dd2b6bec9ae4b6e593998888e833b4277c22181..ba6c5978eabb74e19525077c66bb3a9d16cef66d 100644 (file)
@@ -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 |