EC 7152 then QR 4704 at Barcelona
Milan → Barcelona → Porto
Timetable, Barcelona time
14:25EC 7152 from Milan at the gate
08:35QR 4704 to Porto leaves the gate
18 h 10 apart on the timetable, overnight
QR 4704 leaves 18 h 10 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.