# How to get access to pqPropertiesPanel ?

**URL:** https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019
**Category:** Development
**Created:** [February 26, 2024, 8:36am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019 "2024-02-26T08:36:48Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:36am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/1 "2024-02-26T08:36:48Z")

</div>

Hello dear Paraview developers!

Could you please help me finding how to access pqPropertiesPanel from within a filter in c++

Thank u!

---

<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: [February 26, 2024, 8:41am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/2 "2024-02-26T08:41:42Z")

</div>

Hi Mike,

Simple, you cannot and should not access to pqPropertiesPanel from a filter.

What are you trying to achieve ?

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:46am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/3 "2024-02-26T08:46:03Z")

</div>

Hello dear Mathieu, very glad to see you!

When I invoke a Python script from a filter, it forces the RequestData be executed, and the apply button becomes inactive. However, I ve found out that if I modify any property, it becomes active again.  
I have a custom widget, but when I modify it, the apply button does not seem to become active again.

I failed to find out what is the difference , seems the thing is that in my custom widget I dont correctly use smth like  
`this->addPropertyLink(checkBox, "checked", SIGNAL(toggled(bool)), ivp);`

And than I tried to manipulate property panel to make Apply button active from there.

Could you please help me?

Sincerely yours,  
Mike

---

<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: [February 26, 2024, 8:49am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/4 "2024-02-26T08:49:27Z")

</div>

> [@joint](#):
>
> When I invoke a Python script from a filter, it forces the RequestData be executed

How do you drive that ?

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:51am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/5 "2024-02-26T08:51:23Z")

</div>

I use  
`vtkPythonInteractiveInterpreter`

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:52am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/6 "2024-02-26T08:52:51Z")

</div>

I mean, when I use vtkPythonInteractiveInterpreter, it calls an awful lot of things, and very deep in the call stack, after calling some things from python38.dll, it calls RequestData , and alters the state of pipeline, which I am trying to avoid.

---

<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: [February 26, 2024, 8:54am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/7 "2024-02-26T08:54:00Z")

</div>

are you in a ParaView plugin ? A paraview based app ?

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:54am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/8 "2024-02-26T08:54:58Z")

</div>

Yes, I call that from a paraview plugin, from a server side.  
I have also tried to do it from the client side, but it did not alter anything

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 8:56am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/9 "2024-02-26T08:56:16Z")

</div>

Yes,I ve been following paraview guidelines, plugin how to etc  
It’s more or less regular c++ filter

---

<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: [February 26, 2024, 8:58am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/10 "2024-02-26T08:58:45Z")

</div>

A classic plugin (filters + xml) should not have such issues and also I would not exect a C++ filter to talk with `vtkPythonInteractiveInterpreter` unless you do really involved things.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 9:02am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/11 "2024-02-26T09:02:24Z")

</div>

Mathieu, could you explain, why modifying original paraview widget does activate Apply button, but custom widget does not?

And how to get this fantastic button activated again?

---

<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: [February 26, 2024, 9:04am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/12 "2024-02-26T09:04:11Z")

</div>

> [@joint](#):
>
> why modifying original paraview widget does activate Apply button, but custom widget does not?
> 
> And how to get this fantastic button activated again?

Just make sure your “Setter” calls `this->Modified()`

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 9:08am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/13 "2024-02-26T09:08:06Z")

</div>

I dont have Modified

I ve tried to emit those signals from pqPropertyWidget in my custom widget,  
but they dont activate the Apply button

```auto
void viewChanged (pqView *view) 
void changeAvailable () 
void changeFinished ()
void restartRequired ()

```

---

<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: [February 26, 2024, 9:08am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/14 "2024-02-26T09:08:57Z")

</div>

it has nothing to do with your custom widget, it has all to do with the setter in your VTK filter.

---

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 26, 2024, 9:16am UTC](https://discourse.paraview.org/t/how-to-get-access-to-pqpropertiespanel/14019/15 "2024-02-26T09:16:51Z")

</div>

Wow! You are a Paraview Genius  
Thank you very much!
