QR 3743 then FR 1421 at Barcelona
Milan → Barcelona → Budapest
Timetable, Barcelona time
14:55QR 3743 from Milan at the gate
10:10FR 1421 to Budapest leaves the gate
19 h 15 apart on the timetable, overnight
FR 1421 leaves 19 h 15 after QR 3743 arrives on the timetable: more than half a day, so not a connection we count.