FR 6974 then VY 1156 at Barcelona
Rome → Barcelona → Ljubljana
Timetable, Barcelona time
22:25FR 6974 from Rome at the gate
15:00VY 1156 to Ljubljana leaves the gate
16 h 35 apart on the timetable, overnight
VY 1156 leaves 16 h 35 after FR 6974 arrives on the timetable: more than half a day, so not a connection we count.