curl -sL https://github.com/Kitware/vtk-examples/raw/gh-pages/Tarballs/Cxx/MinimalQtVTKApp.tar | tar xf -
cd MinimalQtVTKApp/build
cmake ..
make
./MinimalQtVTKApp
When running this with VTK 9.2.6 and Qt 5.15.3 under a KDE 5.24.7 session, where the KDE Breeze Qt style plugin is used for Qt applications, there’s an issue when trying to interact with the render window. When left mouse button is pressed, the entire window is grabbed and moves with the mouse until left mouse button is released. When the mouse button is released I get into a state where the VTK render window is interacted with (camera is spun around), until I make a mouse click.
I’m guessing this is some fighting/weird interaction between the KDE Breeze Qt style’s “feature” (possibly in cooperation with KWin?) with which you can “grab” a window to move it by clicking any “dead” space within a widget. Is KDE Breeze/KWin somehow classifying the space occupied by the VTK render window as “dead”…?
In the same environment, this is not happening with VTK 8.2.0. I discovered it when porting our application to VTK 9 and first thought it was us doing something wrong or our port being incomplete, but then saw I could reproduce it with the VTK example above.
Just thought before I dig deeper into this if anyone seen it before or have a hunch of what’s going on?
I forgot to say: If I run the example with another Qt style, e.g. ./MinimalQtVTKApp -style fusion, the issue does not appear, which is how I figured out it’s related to KDE Breeze.
Yes, in VTK 9, up to and including 9.2.6, there are some known X11 event bugs.
I don’t know if they’re related to KDE, but they do involve the window manager.
So I suggest trying the master branch, which has the following X11 fixes: !10077 Fix vtkXOpenGLRenderWindow hang in SetSize !10240 Put ConfigureNotify event back in stack
Yes, in VTK 9, up to and including 9.2.6, there are some known X11 event bugs.
I don’t know if they’re related to KDE, but they do involve the window manager.
So I suggest trying the master branch, which has the following X11 fixes: !10077 Fix vtkXOpenGLRenderWindow hang in SetSize !10240 Put ConfigureNotify event back in stack