In the CMake world it is very common that one would use a toolchain file in order to cross-compile projects.
With Qt Creator I have tried two ways to configure the project:
1. Setting CMAKE_TOOLCHAIN_FILE in the CMake project settings as a variable. For some reason the CMakeCache.txt doesn't contain the entry.
2. Setting CMAKE_TOOLCHAIN_FILE In the CMake Kit configuration. This variable is passed as -D parameter to CMake in server mode. Somehow it doesn't end in the CMakeCache.txt file and it doesn't properly work. It produces x86 32bit binaries.
In both cases QtCreator's .user file contains the CMAKE_TOOLCHAIN_FILE entry, but in the end the toolchain file was not used. The resulted binary was not ARM64.
I have attached a screen cast showing my attempt to configure the project. Please note that the first version from command line worked as expected.
I expect Qt Creator to support CMAKE_TOOLCHAIN_FILE case.