We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
To create widgets in you dialog that are linked to a property of a DocumentObject you can use the following code for example:
DocumentObject
doc = App.newDocument() box = doc.addObject("Part::Box", "Box") doc.recompute() ui = Gui.UiLoader() spin_box = ui.createWidget("Gui::QuantitySpinBox") spin_box.setProperty("unit", "mm") spin_box.setProperty("value", box.Height) Gui.ExpressionBinding(spin_box).bind(box, "Height") spin_box.show()