If you removed the dynamic one, how does it still find it ?

You can modify the .pro file and pass the complete path to the static library