# vtkEventQtSlotConnect: Slot not being called

**URL:** https://discourse.vtk.org/t/vtkeventqtslotconnect-slot-not-being-called/6566
**Category:** Support
**Created:** [September 6, 2021, 6:10pm UTC](https://discourse.vtk.org/t/vtkeventqtslotconnect-slot-not-being-called/6566 "2021-09-06T18:10:19Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nicfel](https://discourse.vtk.org/user_avatar/discourse.vtk.org/nicfel/32/3639_2.png) [@nicfel](https://discourse.vtk.org/u/nicfel)
#### Post date: [September 8, 2021, 10:34am UTC](https://discourse.vtk.org/t/vtkeventqtslotconnect-slot-not-being-called/6566/2 "2021-09-08T10:34:09Z")

</div>

I solved it. Apparently you have to store the vtkEventQtSlotConnect object otherwise the signals will not be delivered.  
So basically this line is incorrect:

```auto
vtkNew<vtkEventQtSlotConnect> eventQtSlotConnect;

```

and should be changed to something that is stored permanently. For example a member variable of your class.

---

_[View the full topic](https://discourse.vtk.org/t/vtkeventqtslotconnect-slot-not-being-called/6566)._
