openBrain wrote: ↑Sun Sep 15, 2019 8:37 am
wmayer wrote: ↑Sun Sep 15, 2019 7:23 am
SplitPropEditor.FCMacro", line 45, in __init__
self.oldIndex = self.oldParent.indexOf(self.ptWid)
<class 'AttributeError'>: 'PySide2.QtWidgets.QWidget' object has no attribute 'indexOf'
Thanks for feedback but that's a bit short.
What it tells is that the 'propertyTab' widget grand-parent isn't a QSplitter in the version you use... I tested with both freecad-stable & freecad-daily, so I think you're using something different. Could you tell more about your version ? Staging ?
I'm interested in fixing that. I take advantage of you being a core dev to ask if you can point me to where in the code the ComboView UI is defined (I admit I didn't search yet) ?
Thanks
All what I did is to execute the macro. The full error message is:
Traceback (most recent call last):
File "SplitPropEditor.FCMacro", line 97, in <module>
Gui.getMainWindow().addDockWidget(QtCore.Qt.RightDockWidgetArea, PropEditor())
File "SplitPropEditor.FCMacro", line 45, in __init__
self.oldIndex = self.oldParent.indexOf(self.ptWid)
<class 'AttributeError'>: 'PySide2.QtWidgets.QWidget' object has no attribute 'indexOf'
What kind of object is oldParent supposed to be that it has an "indexOf" method? Usually a QList has this method but not a QWidget.
OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18227 (Git)
Build type: Release
Branch: master
Hash: a374ecc8ef2abf38b146a1013a0f9700d1cb5fe9
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)