BA 777 then QR 4 at Heathrow
Stockholm → London → Doha
Timetable, London time
15:10BA 777 from Stockholm at the gate
14:15QR 4 to Doha leaves the gate
23 h 05 apart on the timetable, overnight
QR 4 leaves 23 h 05 after BA 777 arrives on the timetable: more than half a day, so not a connection we count.