Qt-interest Archive, February 2007
GraphicsView crashes
Message 1 in thread
Hi,
occasionally the GraphicsView (4.2.1) in my app crashes, especially when parts
of the so far visible objects get deleted. A stack trace usually begins like
#0 0x00002b4f406788e3 in QGraphicsSceneFindItemBspTreeVisitor::visit () from /usr/lib64/libQtGui.so.4
#1 0x00002b4f4067757a in QGraphicsSceneBspTree::climbTree () from /usr/lib64/libQtGui.so.4
#2 0x00002b4f4067757a in QGraphicsSceneBspTree::climbTree () from /usr/lib64/libQtGui.so.4
#3 0x00002b4f40677611 in QGraphicsSceneBspTree::climbTree () from /usr/lib64/libQtGui.so.4
#4 0x00002b4f40677678 in QGraphicsSceneBspTree::items () from /usr/lib64/libQtGui.so.4
#5 0x00002b4f40671393 in QGraphicsScenePrivate::estimateItemsInRect () from /usr/lib64/libQtGui.so.4
#6 0x00002b4f40671dbe in QGraphicsScene::items () from /usr/lib64/libQtGui.so.4
#7 0x00002b4f406818c6 in QGraphicsView::paintEvent () from /usr/lib64/libQtGui.so.4
#8 0x00002b4f402cc0d6 in QWidget::event () from /usr/lib64/libQtGui.so.4
#9 0x00002b4f4051cca9 in QFrame::event () from /usr/lib64/libQtGui.so.4
#10 0x00002b4f40584dda in QAbstractScrollArea::viewportEvent () from /usr/lib64/libQtGui.so.4
...
An entry in Trolltechs tasktracker
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=147478
suggested to call prepareGeometryChange() before changing a
boundingRect.
ok, but this method is protected, so a simple
ellipseFrame->prepareGeometryChange();
won't compile. Do I have to subclass everything? Any other hints?
Best,
Uwe
--
[ signature omitted ]