QR 149 then V7 3723 at Madrid
Doha → Madrid → Málaga
Timetable, Madrid time
13:50QR 149 from Doha at the gate
12:55V7 3723 to Málaga leaves the gate
23 h 05 apart on the timetable, overnight
V7 3723 leaves 23 h 05 after QR 149 arrives on the timetable: more than half a day, so not a connection we count.