FR 3184 then QR 3540 at Barcelona
Rabat → Barcelona → Santander
Timetable, Barcelona time
21:05FR 3184 from Rabat at the gate
18:30QR 3540 to Santander leaves the gate
21 h 25 apart on the timetable, overnight
QR 3540 leaves 21 h 25 after FR 3184 arrives on the timetable: more than half a day, so not a connection we count.