It's probably the line after with addChildWidget and tv being Nonechennes wrote: ↑Thu Sep 08, 2022 6:27 pm Is this line failing (e.g. giving "None")?Code: Select all
tv = Gui.getMainWindow().findChild(QtGui.QWidget,'Tree view')
Code: Select all
mw.addDockWidget(QtCore.Qt.LeftDockWidgetArea,tv)
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x3bd60) [0x7f54fee59d60]
#1 0x7f54fff5b43f in QLayout::addChildWidget(QWidget*) from /lib/x86_64-linux-gnu/libQt5Widgets.so.5+0xf
#2 /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x2b471f) [0x7f550008d71f]