EW 2522 then QR 3526 at Barcelona
Stuttgart → Barcelona → Málaga
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
19:25QR 3526 to Málaga leaves the gate
23 h 25 apart on the timetable, overnight
QR 3526 leaves 23 h 25 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.