EC 3749 then QR 3544 at Barcelona
Milan → Barcelona → Ibiza
Timetable, Barcelona time
09:40EC 3749 from Milan at the gate
07:50QR 3544 to Ibiza leaves the gate
22 h 10 apart on the timetable, overnight
QR 3544 leaves 22 h 10 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.