thanks alot, im on linux actually and have found how to do it but I also do Mac stuff and Im sure it will come in handy. The way I did it was to add a special directive in my .pro file but I think it is possible to do it using QLibrary. The special directive I added was

unix:!mac{
QMAKE_LFLAGS += -Wl,-rpath=\\\$\$ORIGIN
}
I put theQt libs in my project directory and added LIBS+= libQt.so.4 in my .pro file.