QR 3744 then IB 5798 at Barcelona
Milan → Barcelona → Cagliari
Timetable, Barcelona time
16:45QR 3744 from Milan at the gatealso IB 5357, LL 5357, VY 6045
07:15IB 5798 to Cagliari leaves the gatealso LL 5798, VY 6114
14 h 30 apart on the timetable, overnight
IB 5798 leaves 14 h 30 after QR 3744 arrives on the timetable: more than half a day, so not a connection we count.