I'm creating tabs dynamically in QML TabView on Component.onCompleted

Qt Code:
  1. var t = tabview.addTab("tab", Qt.createComponent("TabItem.qml"));
  2.  
  3. console.log("Creating Tabs " + t)
  4. if(t != null)
  5. {
  6. var last = tabview.count-1;
  7. tabview.getTab(last).active = true;
  8. t.item.partsModel = model.getMenuModel(i)
  9. }
To copy to clipboard, switch view to plain text mode 

The problem is that I need to set an objectName to the dynamic tab to set properties from Qt.
Can you suggest a method for the same?