QR 3502 then MS 768 at Barcelona
Málaga → Barcelona → Cairo
Timetable, Barcelona time
21:10QR 3502 from Málaga at the gate
15:25MS 768 to Cairo leaves the gate
18 h 15 apart on the timetable, overnight
MS 768 leaves 18 h 15 after QR 3502 arrives on the timetable: more than half a day, so not a connection we count.