QR 3522 then W6 2378 at Barcelona
Málaga → Barcelona → Budapest
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
20:50W6 2378 to Budapest leaves the gate
19 h 30 apart on the timetable
W6 2378 leaves 19 h 30 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.