QR 3675 then LA 5745 at Barcelona
Bologna → Barcelona → Málaga
Timetable, Barcelona time
11:55QR 3675 from Bologna at the gate
11:40LA 5745 to Málaga leaves the gate
23 h 45 apart on the timetable, overnight
LA 5745 leaves 23 h 45 after QR 3675 arrives on the timetable: more than half a day, so not a connection we count.