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