rpath is only a suggestion. If the linker can't find the library in directories specified by rpath, it will perform a regular lookup for the libraries. If it doesn't work for you then it means you didn't place your Qt libs in a directory the linker looks for libraries.