material editor
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: material editor
thanks guys for the links. I will add some comment in the code where to find the property definition.
Re: material editor
Good morning:
I've read all the threads and posted documentation. I'll read again.
Thank you.
In this link, https://github.com/caceres/FreeCAD/commits/mat, there is a draft about the migration to model/view.yorik wrote: Basically you need to use a QTreeView instead of a QTreeWidget, and make a model yourself, which is the "entity" whick keeps/organizes the data of a tree widget, and give it a custom QStyledItemDelegate which handles the actions when you want to edit an item of the tree
I've read all the threads and posted documentation. I'll read again.
Thank you.
Re: material editor
Good morning:
The last weekend I've been dealing with a very similar model with properties. I'm experimenting with a property's definition like
Perhaps the end user must be allowed to define all characteristics of the custom properties[Name, Type, Value, Units, Constraints, Comments ...]
The next months I'll be working intensively with models ...
Re: material editor
Hello. No. I don't achieve Gui::InputField working in the delegate class. For a strange reason after finish successful setEditorData, setModelData seems to lose the editor signal. I don't understand it.bernd wrote: ↑Sun Jun 10, 2018 4:07 am @damian:
do you still do some dev for material editor? What I would like to see is a nice Gui::Input field to change the material attributes, like we have in FEM
Screenshot_20180610_060454.png
Do you do development in this regard? With such an input field in material editor, I would totally switch to the material editor for material editing in FEM.
Bernd
I have examples with QLineEdit, QSpinBox, and QComboBox all working fine, and with all type of data. But with Gui::InputField no.
Re: material editor
You may make an small explizit code example and describe the problem in a new topic in the developer part of the forum. There might be someone who could help. May be there is a limitation in th Gui::InputField which could be changed ...
bernd
bernd
Re: material editor
BTW: the material editor has no icon ... https://forum.freecadweb.org/viewtopic.php?f=34&t=29528
Re: material editor
Good morning:
from my point of view Gui::InputField has two inconvenient:
1º) A field with units meters shows green painted with 10 Pa or 10 l
2º) No possible to impose constraints on the values, at least in an obvious way
from my point of view Gui::InputField has two inconvenient:
1º) A field with units meters shows green painted with 10 Pa or 10 l
2º) No possible to impose constraints on the values, at least in an obvious way
Re: material editor
Mhh strange we do not have this problem in FEM material task panel ...
What do you mean by this?