# How can I get the main renderwindow of PV?

**URL:** https://discourse.paraview.org/t/how-can-i-get-the-main-renderwindow-of-pv/6290
**Category:** ParaView Support
**Created:** [January 25, 2021, 6:46am UTC](https://discourse.paraview.org/t/how-can-i-get-the-main-renderwindow-of-pv/6290 "2021-01-25T06:46:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lyz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.paraview.org/u/lyz)
#### Post date: [January 25, 2021, 6:46am UTC](https://discourse.paraview.org/t/how-can-i-get-the-main-renderwindow-of-pv/6290/1 "2021-01-25T06:46:36Z")

</div>

How can I get the main vtkRenderWindow or vtkRenderer from the PV using C++?

---

<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: [January 25, 2021, 9:23am UTC](https://discourse.paraview.org/t/how-can-i-get-the-main-renderwindow-of-pv/6290/2 "2021-01-25T09:23:07Z")

</div>

Active render window:

`pqActiveObjects::instance()->activeView()->getViewProxy()->GetRenderWindow()`
