QR 7 then BA 964 at Heathrow
Doha → London → Hamburg
Timetable, London time
13:25QR 7 from Doha at the gate
11:30BA 964 to Hamburg leaves the gate
22 h 05 apart on the timetable, overnight
BA 964 leaves 22 h 05 after QR 7 arrives on the timetable: more than half a day, so not a connection we count.