The component gets created as the reference is printed properly.

I learned that the tab need to be active before setting the model to the new tab.

Qt Code:
  1. if(t != null)
  2. {
  3. var last = tabview.count-1;
  4. tabview.getTab(last).active = true;
  5. t.item.partsModel = toolbarModel
  6. console.log(tabview.getTab(last).item);
  7. }
To copy to clipboard, switch view to plain text mode 

Thanks for the pointers.