How to apply patch to source files?
Solved
Installation and Deployment
-
Solution: If you have git installed, its actually very easy using the git cli. Qt sources don't even need to be added to version control for this.
- Open Terminal and Go to the Qt module the patch is for. E.g. the recent HTTP related patch is for QtBase, so go to that folder qtbase.
- Type command "git apply <patch-filename> -v" (-v is just so you can see the output)
That's it!
-
Using patch command.
On Linux see "man patch" for details (or https://www.man7.org/linux/man-pages/man1/patch.1.html). -
-
Solution: If you have git installed, its actually very easy using the git cli. Qt sources don't even need to be added to version control for this.
- Open Terminal and Go to the Qt module the patch is for. E.g. the recent HTTP related patch is for QtBase, so go to that folder qtbase.
- Type command "git apply <patch-filename> -v" (-v is just so you can see the output)
That's it!
-