Trump had earlier come through a tricky semi-final against Shaun Murphy 4-2.
He started slowly in the final, but for the third time in five Players Tour Championship events this season he managed to recover from 3-1 down against Hamilton to eke out the win.
Hamilton, 39, has slipped to 42 in the world rankings, but beat up-and-coming Daniel Wells, Bjorn Haneveer and Marcus Campbell on his way to coming within a whisker of the title.
Murphy on fire in Germany
Elsewhere in the draw there were good results for veterans, with both Jimmy White and Steve Davis reaching the quarter-finals.
Judd Trump 4-3 Anthony Hamilton
Shaun Murphy 2-4 Judd Trump
Daniel Wells 1-4 Anthony Hamilton
Steve Davis 1-4 Shaun Murphy
Jack Lisowski 0-4 Judd Trump
Jimmy White 2-4 Daniel Wells
Stuart Bingham 3-4 Anthony Hamilton
Steve Davis 4-3 Mark Davis
Andrew Higginson 2-4 Shaun Murphy
Jack Lisowski 4-0 Ricky Walden
Judd Trump 4-2 Anthony McGill
Peter Lines 0-4 Jimmy White
Daniel Wells 4-2 Alfie Burden
Gerard Greene 1-4 Stuart Bingham
Anthony Hamilton 4-2 Bjorn Haneveer
Right on cue: Judd Trump
Craigie stuns Un-Nooh in Scottish Open qualifying