I'm not 100% clear on what you are trying to do but setting PATH will have no affect on whether or not something can find libraries. PATH is just the search path used to search for executable files when you try and run them.
Are we talking about libraries QT Creator needs to start or development libraries you need to build something ?