- Qt 6.6
- Qt Core
- CMake Variables in Qt6 Core
- QT_HOST_PATH
- Qt 6.6.1 Reference Documentation

# QT_HOST_PATH

Location of the host Qt installation when cross-compiling.

This variable was introduced in Qt 6.0.

When cross-compiling, this variable must be set to the install location of Qt for the host platform. It is used to locate tools to be run on the host (moc, rcc, androiddeployqt, and so on). It's possible to reuse pre-installed tools when compiling Qt for host systems too, by using `QT_HOST_PATH` that points to a pre-installed host Qt and setting the `QT_FORCE_FIND_TOOLS` to `ON`. The Qt versions should match in this case.