QR 175 then DY 1718 at Oslo
Doha → Oslo → Madrid
Timetable, Oslo time
13:30QR 175 from Doha at the gate
07:45DY 1718 to Madrid leaves the gate
18 h 15 apart on the timetable, overnight
DY 1718 leaves 18 h 15 after QR 175 arrives on the timetable: more than half a day, so not a connection we count.