Adding the files only has the effect that the files are shown in the IDE. However, the files should be present anyways and adding them again causes Qt Creator to accidently use the wrong target for the code model.