FR 3040 then QR 3578 at Barcelona
Prague → Barcelona → Rome
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
21:05QR 3578 to Rome leaves the gatealso IB 5772, LL 5772
23 h 50 apart on the timetable, overnight
QR 3578 leaves 23 h 50 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.