# QQuickVTKInteractorAdapter.cxx:110:59: error: no matching function for call to ‘QWheelEvent

**URL:** https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942
**Category:** Support
**Created:** [March 1, 2022, 1:22am UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942 "2022-03-01T01:22:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [March 1, 2022, 1:22am UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/1 "2022-03-01T01:22:57Z")

</div>

Am trying to build the latest, stable download (9.1.0) on Redhat Linux. Encounter the following build error:

Vtk/VTK-9.1.0/GUISupport/QtQuick/QQuickVTKInteractorAdapter.cxx: In member function ‘void QQuickVTKInteractorAdapter::QueueWheelEvent(QQuickItem\*, QWheelEvent\*)’:  
/home/rmartz/Downloads/Vtk/VTK-9.1.0/GUISupport/QtQuick/QQuickVTKInteractorAdapter.cxx:110:59: error: no matching function for call to ‘QWheelEvent::QWheelEvent(QPointF, QPointF, QPoint, QPoint, Qt::MouseButtons, Qt::KeyboardModifiers, Qt::ScrollPhase, bool, Qt::MouseEventSource)’  
e-\>modifiers(), e-\>phase(), e-\>inverted(), e-\>source());

I’ve selected to build RELEASE, Documentation, Examples, and Qt5. CMake finds all of the appropriate Qt5 libs. I have Qt 5.9.7 installed. Am using gcc 4.8.5

All of this appears to be in the list of supported functionality.

Can someone help me with this?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 1, 2022, 4:14pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/2 "2022-03-01T16:14:40Z")

</div>

> [@BlueKnight7](#):
>
> I have Qt 5.9.7 installed.

It seems we’re missing a condition in that module; I think it requires 5.12. @sankhesh

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [March 1, 2022, 4:52pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/3 "2022-03-01T16:52:15Z")

</div>

Is there a fix for this beyond trying to install a newer version of Qt? I’m on an institutional computer using Redhat Enterprise Linux. Trying to upgrade on this type of system is administratively difficult – until Redhat does so with their distro.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 1, 2022, 5:40pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/4 "2022-03-01T17:40:48Z")

</div>

If you don’t need QtQuick support, you can just turn it off. Should be `VTK_MODULE_ENABLE_VTK_GUISupportQtQuick=NO`, but it’ll show up in as an advanced variable too.

---

<div class="post-metadata">

### Author: ![sankhesh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sankhesh/32/73_2.png) [@sankhesh](https://discourse.vtk.org/u/sankhesh)
#### Post date: [March 1, 2022, 7:58pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/5 "2022-03-01T19:58:27Z")

</div>

The minimum supported Qt version for VTK is 5.12. It would be best to disable the QtQuick module based as Ben suggested.

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [March 1, 2022, 8:51pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/6 "2022-03-01T20:51:36Z")

</div>

That worked. Thanks!

---

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [March 1, 2022, 8:58pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/7 "2022-03-01T20:58:02Z")

</div>

That doesn’t seem to be correctly documented anywhere. In the Documentation/dev/build.md file under the Optional dependencies section it says:

[Qt5][qt]

- Version 5.9 or newer

---

<div class="post-metadata">

### Author: ![sankhesh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sankhesh/32/73_2.png) [@sankhesh](https://discourse.vtk.org/u/sankhesh)
#### Post date: [March 1, 2022, 9:14pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/8 "2022-03-01T21:14:37Z")

</div>

Thanks for pointing it out @BlueKnight7. That document needs to be updated.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [February 15, 2023, 7:23pm UTC](https://discourse.vtk.org/t/qquickvtkinteractoradapter-cxx59-error-no-matching-function-for-call-to-qwheelevent/7942/9 "2023-02-15T19:23:33Z")

</div>

Turns out that 5.9 support isn’t that hard. It’s included in this MR: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/9799](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/9799)
