FR 3077 then QR 3516 at Barcelona
Stockholm → Barcelona → Málaga
Timetable, Barcelona time
19:55FR 3077 from Stockholm at the gate
19:25QR 3516 to Málaga leaves the gate
23 h 30 apart on the timetable, overnight
QR 3516 leaves 23 h 30 after FR 3077 arrives on the timetable: more than half a day, so not a connection we count.