QR 3502 then U2 3218 at Barcelona
Málaga → Barcelona → Edinburgh
Timetable, Barcelona time
21:10QR 3502 from Málaga at the gate
19:15U2 3218 to Edinburgh leaves the gate
22 h 05 apart on the timetable, overnight
U2 3218 leaves 22 h 05 after QR 3502 arrives on the timetable: more than half a day, so not a connection we count.