Building the official minimal Qt VTK example with Qt6 uses Qt5 instead

All the Qt5 variables are fine. All you need to do is be able to provide the Qt6 variables to CMake.

Once you do, cmake -DVTK_QT_VERSION=6 -DQt6_DIR=<path to qt6> , vtk should link against the Qt6 libraries.