QR 3522 then TP 1037 at Barcelona
Málaga → Barcelona → Lisbon
Timetable, Barcelona time
00:55QR 3522 from Málaga at the gate
18:05TP 1037 to Lisbon leaves the gate
17 h 10 apart on the timetable
TP 1037 leaves 17 h 10 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.