DY 5503 then QR 3516 at Barcelona
Stockholm → Barcelona → Málaga
Timetable, Barcelona time
22:15DY 5503 from Stockholm at the gate
21:55QR 3516 to Málaga leaves the gate
23 h 40 apart on the timetable, overnight
QR 3516 leaves 23 h 40 after DY 5503 arrives on the timetable: more than half a day, so not a connection we count.