# open pqColorOpacityEditorWidget in c++ custom application

**URL:** https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575
**Category:** Development
**Created:** [July 24, 2023, 3:33pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575 "2023-07-24T15:33:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fvitello](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fvitello/32/8783_2.png) [@fvitello](https://discourse.paraview.org/u/fvitello)
#### Post date: [July 24, 2023, 3:33pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/1 "2023-07-24T15:33:06Z")

</div>

hi all,

how can I use existing paraview widget in my custom application? E.g. is is possibile to open and use the `pqColorOpacityEditorWidget` ?

---

<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: [July 24, 2023, 3:36pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/2 "2023-07-24T15:36:43Z")

</div>

> is is possibile to open and use the pqColorOpacityEditorWidget ?

Yes, just include the file and use it ? You will need of course to build and link against ParaView.

---

<div class="post-metadata">

### Author: ![fvitello](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fvitello/32/8783_2.png) [@fvitello](https://discourse.paraview.org/u/fvitello)
#### Post date: [July 24, 2023, 3:48pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/3 "2023-07-24T15:48:42Z")

</div>

Thanks,

what are the meaning of the parameter in the constructor?

`pqColorOpacityEditorWidget(vtkSMProxy* proxy, vtkSMPropertyGroup* smgroup, QWidget* parent = **nullptr** );`

---

<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: [July 24, 2023, 3:55pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/4 "2023-07-24T15:55:08Z")

</div>

the `pqColorOpacityEditorWidget` is intended to be used with a proxy and a group of properties of this proxy with specific names. You should have both of these to pass to it in the constructor.

---

<div class="post-metadata">

### Author: ![fvitello](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fvitello/32/8783_2.png) [@fvitello](https://discourse.paraview.org/u/fvitello)
#### Post date: [July 24, 2023, 4:41pm UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/5 "2023-07-24T16:41:00Z")

</div>

Thanks again,

which proxy I need to pass? The one from my DataRepresentation?  
Which group of property I need to pass?

---

<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: [July 25, 2023, 6:58am UTC](https://discourse.paraview.org/t/open-pqcoloropacityeditorwidget-in-c-custom-application/12575/6 "2023-07-25T06:58:27Z")

</div>

> [@mwestphal](#):
>
> `pqColorOpacityEditorWidget`

See `pqStandardPropertyWidgetInterface::createWidgetForPropertyGroup`
