Thanks
No. I commented that I didn't find any example of this make directly from the py file, always the property and its kind (for instance length) defined in the ui file. And now you removed the property's classification from the ui file (I like this solution).
I know. I could not offer a solution before two or three weeks.
Code: Select all
self.Length = ui.createWidget("Gui::InputField")
self.Length.setText("0.00 mm")
I was enterteined with the update() and append rows to the model, and ...
https://srinikom.github.io/pyside-docs/ ... egate.htmlIt is possible for a custom delegate to provide editors without the use of an editor item factory. In this case, the following virtual functions must be reimplemented:
PySide.QtGui.QStyledItemDelegate.createEditor() returns the widget used to change data from the model and can be reimplemented to customize editing behavior.
PySide.QtGui.QStyledItemDelegate.setEditorData() provides the widget with data to manipulate.
PySide.QtGui.QStyledItemDelegate.updateEditorGeometry() ensures that the editor is displayed correctly with respect to the item view.
PySide.QtGui.QStyledItemDelegate.setModelData() returns updated data to the model.
Yes. A few experiments to taste different solutions.
Yes, I have got the module PEP8 enabled in my IDE (spyder)
Not in the code, but on the wiki there is this: