We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e63124c commit 1fea876Copy full SHA for 1fea876
NodalScene.cpp
@@ -51,6 +51,12 @@ NodalScene::NodalScene(QObject* parent)
51
// Create the output, that is a unique and non-removable component
52
createNode("Output", 100.0);
53
m_undoStack->clear();
54
+
55
+ // Disabling BSP to avoid crashing when removing link items in the scene
56
+ // see: https://forum.qt.io/topic/71316/qgraphicsscenefinditembsptreevisitor-visit-crashes-due-to-an-obsolete-paintevent-after-qgraphicsscene-removeitem/21
57
+ // (TL;DR: Removing item in the scene doesn't remove properly the item in the BSP tree)
58
+ // TODO: find a better fix to get better perf with lot of items in the scene
59
+ setItemIndexMethod(QGraphicsScene::ItemIndexMethod::NoIndex);
60
}
61
62
NodalScene::~NodalScene()
0 commit comments