# How to trigger auto-apply

**URL:** https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111
**Category:** Development
**Created:** [May 16, 2023, 11:37am UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111 "2023-05-16T11:37:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nenad-vujicic](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nenad-vujicic/32/1969_2.png) [@nenad-vujicic](https://discourse.paraview.org/u/nenad-vujicic)
#### Post date: [May 16, 2023, 11:37am UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111/1 "2023-05-16T11:37:02Z")

</div>

Hello everyone,

I created several plugins (source + filters) and a patch which could alter source’s / filter’s properties. However, when I change one of these properties (programmatically, from the patch), the pipeline doesn’t update automatically, although I have turned ON Edit | Settings | General → Auto Apply. When I update the same properties by clicking on them in Properties panel, the pipeline is automatically updated. So, because of this, I need to get appropriate pqPipelineSource and set its state to pqProxy::MODIFIED which makes appropriate button green and after clicking it it automatically updates the pipeline correctly.

I update above properties using call: pqSMAdaptor::setElementProperty(proxy-\>GetProperty(“PropertyName”), NewPropertyValue);

Is there a way to make this automatically? I mean, some regular way, without finding QWidget representing Apply button and sending it a clicked() signal 🙂

Thanks,  
Nenad.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 16, 2023, 11:53am UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111/2 "2023-05-16T11:53:30Z")

</div>

Which version of ParaView are you using ? This was improved recently.

---

<div class="post-metadata">

### Author: ![nenad-vujicic](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nenad-vujicic/32/1969_2.png) [@nenad-vujicic](https://discourse.paraview.org/u/nenad-vujicic)
#### Post date: [May 16, 2023, 11:57am UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111/3 "2023-05-16T11:57:55Z")

</div>

Hi Mathieu,

Thanks for responding. I use ParaView v5.11.0 sources (release), C++ and Visual Studio 2019 x64.

Thanks,  
Nenad.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 16, 2023, 12:30pm UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111/4 "2023-05-16T12:30:45Z")

</div>

`pqPVApplicationCore::applyPipeline` should do the trick

---

<div class="post-metadata">

### Author: ![nenad-vujicic](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nenad-vujicic/32/1969_2.png) [@nenad-vujicic](https://discourse.paraview.org/u/nenad-vujicic)
#### Post date: [May 16, 2023, 12:49pm UTC](https://discourse.paraview.org/t/how-to-trigger-auto-apply/12111/5 "2023-05-16T12:49:25Z")

</div>

And it does 🙂

Mathieu, thank you very much. It worked perfectly!

Thanks,  
Nenad.
