I'm using Yocto and configures a dedicated kit to the cross compilation environment.When I tried to compile a "helloworld" program I had a linking issue.I found a solution but I'm not sure I used the good way to solve my issue and I wonder if somebody in this forum can explain me why I experience such an issue and how to fix it properly.

QtCreator configuration
I did compile qt5 toolchain with yocto (meta-toolchain-qt5) and install it.
I did update qtcreator.sh to set the env variable required for cross compilation
I configured the debugger to use thegdb of my toolchain.
I configured the compiler to use the g++ compiler of my toolchain
I configured qmake to use the qmake of my toolchain.
I configured a kit using all these programs and specifying my sysroot.
As I'm cross compiling for a docker image, I kept the device type as Desktop.

The issue
When I tried to compile my "helloworld" program (named QtVersion and writing the version of Qt in a console), the linker is giving me the following error.