While your point is valid regarding a crazy number of middlemen, I've also paid via the QR code on the receipt at a number of restaurants recently and I love it!
No need to flag down a server when it's time to pay; I just scan it on my phone, click on apple pay, enter the tip, and I'm done!