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

That looks correct to me. Try starting in a fresh directory. If you’d like to use Qt6, there’s no reason to provide Qt5_DIR values. And if it does end up in the cache after running cmake, it means something is trying to find Qt5 and linking against it.