Connections{ target: tvItem; onCurrentIndexChanged: { console.log(tvItem.currentIndex+" is clicked!"+tvItem.currentTab); changed(tvItem.currentIndex);} }当onCurrentIndexChanged时获取CurrentIndex,然后用信号绑定目标发出