When I was writing the makefile today, I found that QT Creator would convert the Tab character into a space when saving (Ctrl+S). I had not found this before, which was a bit confusing.Official website There are also instructions on it, click here
In short, the solution is as follows
Click: Tools ->Options->TextEditer->Behavior, cancel Clean Check mark for indentation
Save the settings to solve the above problem