I would use QtCreator by opening a project and then adding one of the non-local sources (say, the first one you see in .pro).
The IDE must host it with the correct relative path according to the folder choice. After that cut'n'paste the path prefix in all remaining places.
In any case, the path prefixes should be relative to the directory in which you will find .pro. Example from an open source project that I am using (QZXIng, Qt ZXing port):
SOURCES += CameraImageWrapper.cpp \ QZXing.cpp \ imagehandler.cpp \ zxing/ResultPointCallback.cpp \ zxing/ResultPoint.cpp \ zxing/Result.cpp \ ...
then you try to make a .pro file, where appropriate, instead of changing the relative paths ...
NTN
source share