View on GitHub

FreeCAD Developers Handbook

A handbook about FreeCAD development

Dealing with Property Changes #

A brief introduction

Recommended reading:

The App side #

void myFeature::execute()
{
    MyProperty->setValue(foo());
}
void myFeature::onChanged(App::Property property)
{
    if (property == MyProperty) {
        execute();
    }
}

The Gui side #