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