# Issue with QVTKRenderWindowInteractor and PySide6 6.10.1 on MacOS

**URL:** https://discourse.vtk.org/t/issue-with-qvtkrenderwindowinteractor-and-pyside6-6-10-1-on-macos/16225
**Category:** Development
**Tags:** python
**Created:** [January 12, 2026, 10:51pm UTC](https://discourse.vtk.org/t/issue-with-qvtkrenderwindowinteractor-and-pyside6-6-10-1-on-macos/16225 "2026-01-12T22:51:45Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![nchampag](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nchampag/32/2763_2.png) [@nchampag](https://discourse.vtk.org/u/nchampag)
#### Post date: [February 18, 2026, 4:57pm UTC](https://discourse.vtk.org/t/issue-with-qvtkrenderwindowinteractor-and-pyside6-6-10-1-on-macos/16225/10 "2026-02-18T16:57:43Z")

</div>

A workaround seems to have been found that avoids the hang (so far). A flag (`__doPaintEvent()`) has been added to QVTKRenderWindowInteractor (see attached) that allows `paintEvent()` to be called only if the flag is `True`. It is initialized in the `init()` function and is set before calls to the `update()` function are made. Note that this approach works in QVTKRenderWindowInteractor provided by Mayavi, too.

[QVTKRenderWindowInteractor.py](https://discourse.vtk.org/uploads/short-url/kP7LCHnuhWHgonU3CzMUcWx0ZIK.py) (26.8 KB)

---

_[View the full topic](https://discourse.vtk.org/t/issue-with-qvtkrenderwindowinteractor-and-pyside6-6-10-1-on-macos/16225)._
