FR 2240 then QR 3573 at Barcelona
Marrakesh → Barcelona → Cagliari
Timetable, Barcelona time
18:00FR 2240 from Marrakesh at the gate
11:05QR 3573 to Cagliari leaves the gate
17 h 05 apart on the timetable, overnight
QR 3573 leaves 17 h 05 after FR 2240 arrives on the timetable: more than half a day, so not a connection we count.