EC 3749 then QR 3504 at Barcelona
Milan → Barcelona → Ibiza
Timetable, Barcelona time
21:30EC 3749 from Milan at the gate
16:35QR 3504 to Ibiza leaves the gate
19 h 05 apart on the timetable, overnight
QR 3504 leaves 19 h 05 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.