# Qt6 + VTK9: Objects always rotating

**URL:** https://discourse.vtk.org/t/qt6-vtk9-objects-always-rotating/9658
**Category:** Support
**Created:** [October 23, 2022, 9:48pm UTC](https://discourse.vtk.org/t/qt6-vtk9-objects-always-rotating/9658 "2022-10-23T21:48:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![andrsd](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andrsd/32/4373_2.png) [@andrsd](https://discourse.vtk.org/u/andrsd)
#### Post date: [October 23, 2022, 9:48pm UTC](https://discourse.vtk.org/t/qt6-vtk9-objects-always-rotating/9658/1 "2022-10-23T21:48:45Z")

</div>

When I build the minimal Qt VTK app example[1] with Qt 6.2.4 and VTK 9.2.2, the displayed object rotates such that it follows the mouse cursor.

If I build just a standalone VTK app (like BorderWidgetQt [2]) I get the expected behavior: object stays still and only rotates when a key modifier/mouse button is pressed.

Qt6 is installed via Qt installer. VTK is build from source with these options:

```auto
VTK_BUILD_DOCUMENTATION=OFF
VTK_BUILD_EXAMPLES=OFF
VTK_BUILD_SCALED_SOA_ARRAYS=OFF
VTK_BUILD_TESTING=OFF
VTK_GROUP_ENABLE_Imaging=DEFAULT
VTK_GROUP_ENABLE_MPI=DONT_WANT
VTK_GROUP_ENABLE_Rendering=WANT
VTK_GROUP_ENABLE_StandAlone=WANT
VTK_GROUP_ENABLE_Views=DEFAULT
VTK_GROUP_ENABLE_Web=DEFAULT
VTK_PYTHON_VERSION=3
VTK_QT_VERSION=Auto
VTK_SMP_IMPLEMENTATION_TYPE=Sequential
VTK_USE_CUDA=OFF
VTK_USE_LARGE_DATA=OFF
VTK_USE_MPI=OFF
VTK_WRAP_JAVA=OFF
VTK_WRAP_PYTHON=OFF

```

System (MaxOS X, Apple M1 silicon):

```auto
$ uname -a
Darwin hostname 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64

```

Is this a known problem?

[1] - [https://kitware.github.io/vtk-examples/site/Cxx/Qt/MinimalQtVTKApp/](https://kitware.github.io/vtk-examples/site/Cxx/Qt/MinimalQtVTKApp/)  
[2] - [https://kitware.github.io/vtk-examples/site/Cxx/Qt/BorderWidgetQt/](https://kitware.github.io/vtk-examples/site/Cxx/Qt/BorderWidgetQt/)

---

<div class="post-metadata">

### Author: ![andrsd](https://discourse.vtk.org/user_avatar/discourse.vtk.org/andrsd/32/4373_2.png) [@andrsd](https://discourse.vtk.org/u/andrsd)
#### Post date: [October 24, 2022, 3:41pm UTC](https://discourse.vtk.org/t/qt6-vtk9-objects-always-rotating/9658/2 "2022-10-24T15:41:45Z")

</div>

I tried this on a Mac mini (also Apple M1 silicon) and all is working as expected. The above is on a MacBook Pro, so I am wondering if this problem is somehow related to the presence of a trackpad…
