How to make the VTK 9.2 installation routine aware of Qt 5 installed on AlmaLinux 9?

VTK with Qt is a dependency for a FEA meshing software I want to install. Qt5 is already installed, python 3 also, the latter would be a nice-to-have.

How/Where should I make a setting to compile VTK with Qt?

I followed instructions related to older VTK versions but either the settings were not available in the current version or Qt was not picked-up during the compilation.