My error was caused by the compiler being set to x64 version, but I was compiling in an x86 environment.
The modification is as follows: Go to Project Properties -> Qt Project Settings -> Qt Installation Set it to 5.14.2_msvc2017_64 (previously it was 5.14.2_msvc2017).