We are speaking of this:
https://wiki.freecadweb.org/Property_editor
There is a way to adapt the size of "property editor" first column to adapt it to content added by a FPO?
I'm speaking about first column that contains the "Property Name".
I think that I could probably obtain the ComboView using this code:
Code: Select all
import PySide2
import FreeCADGui
mw = FreeCADGui.getMainWindow()
cb = mw.findChild(PySide2.QtCore.QObject, "Combo View")
Combo View widgets is made in this way:
Code: Select all
<PySide2.QtWidgets.QDockWidget(0x5591a73daf00, name="Combo View") at 0x7fcad3269800>
16:06:43 <PySide2.QtWidgets.QWidget(0x5591a3dda1a0, name="Combo View") at 0x7fcad0343340>
16:06:43 [<PySide2.QtWidgets.QGridLayout(0x5591a3d6cd50) at 0x7fcad03307c0>, <PySide2.QtWidgets.QTabWidget(0x5591a3d6ef40, name="combiTab") at 0x7fcad0330800>]
- a QDockWidget named "Combo View" that I suppose is a sort of container
- among his children there are anothe widget named again "Combo View" specified as QtWidget, probably another container
- this container contains a QTabWidget named "combiTab"
So I suppose I have to operate on "combiTab" finding a way to resize the "first column".
I'm lost in the nidification.
I want to use it on a 0.19.3 version (It is only that I have this version installed), if possible.
If not possible on 0.19.3, even some hints for 0.20 will be appreciated.
Any hints will be appreciated.
TIA and Regards
Carlo D.
Edited to clarify the request and title changed to be more precise (I hope)OS: Artix Linux (openbox)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24366 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0f9259c)
Hash: 0f9259cda103ae1824ac16c68ac9b4a0d54b05fc
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: Italian/Italy (it_IT)
Edited II change title to make more clear that is a question, some minor English corrections, new code added to shorten thread.