After receiving @JarMan's comment, I verified the Qt and I found that my Qt pointed to the build host Qt installation. After I manually pointed to the cross-compiled Qt from the Yocto SDK, the error disappeared.