EC 1703 then QR 150 at Madrid
Nice → Madrid → Doha
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
15:20QR 150 to Doha leaves the gate
18 h 40 apart on the timetable, overnight
QR 150 leaves 18 h 40 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.