# QVTKOpenGLStereoWidget customContextMenuRequested not work

**URL:** https://discourse.vtk.org/t/qvtkopenglstereowidget-customcontextmenurequested-not-work/6124
**Category:** Support
**Created:** [July 2, 2021, 7:39am UTC](https://discourse.vtk.org/t/qvtkopenglstereowidget-customcontextmenurequested-not-work/6124 "2021-07-02T07:39:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![evgen](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/85f322/32.png) [@evgen](https://discourse.vtk.org/u/evgen)
#### Post date: [July 2, 2021, 7:39am UTC](https://discourse.vtk.org/t/qvtkopenglstereowidget-customcontextmenurequested-not-work/6124/1 "2021-07-02T07:39:09Z")

</div>

I am migrating my app from vtk 8.1 to vtk 9.0. In vtk 9 QVTKOpenGLWidget is replaced with QVTKOpenGLStereoWidget. To create a context menu in vtk 8.1 I used the code:  
m\_View-\>setContextMenuPolicy(Qt::CustomContextMenu);  
connect(m\_View, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(ShowVTKContextMenu(const QPoint&)));  
but it doesn’t work in vtk 9. What could be the problem?

---

<div class="post-metadata">

### Author: ![yijin\_mao](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yijin_mao/32/7201_2.png) [@yijin\_mao](https://discourse.vtk.org/u/yijin_mao)
#### Post date: [June 4, 2023, 5:58am UTC](https://discourse.vtk.org/t/qvtkopenglstereowidget-customcontextmenurequested-not-work/6124/2 "2023-06-04T05:58:26Z")

</div>

Use QVTKOpenGLNativeWidget will resolve the issue.  
still reply this in case anyone has same issue though it was an old issue.
