How did you make the qmake work ?

Usually paths are hard coded inside qt when u install it. With installer, patches are applied and hence you can install them to any directory.
So as schnitzel said, uninstall and install fresh to new location.