LA 5741 then QR 3627 at Barcelona
Lisbon → Barcelona → Rome
Timetable, Barcelona time
23:55LA 5741 from Lisbon at the gate
14:45QR 3627 to Rome leaves the gate
14 h 50 apart on the timetable, overnight
QR 3627 leaves 14 h 50 after LA 5741 arrives on the timetable: more than half a day, so not a connection we count.