FR 4586 then QR 3590 at Barcelona
Porto → Barcelona → Firenze
Timetable, Barcelona time
22:20FR 4586 from Porto at the gate
16:45QR 3590 to Firenze leaves the gate
18 h 25 apart on the timetable, overnight
QR 3590 leaves 18 h 25 after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.