FR 3040 then QR 3536 at Barcelona
Prague → Barcelona → Palma de Mallorca
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
15:40QR 3536 to Palma de Mallorca leaves the gate
18 h 25 apart on the timetable, overnight
QR 3536 leaves 18 h 25 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.