Comment 1 for bug 1124071

Revision history for this message
Thomas Beckett (thomas-beckett) wrote : Re: Cannot add Tabs programmatically

This is a limitation in the VisualItemModel upon which Tabs is based and will need to be resolved with a feature request upstream within Qt. VisualItemModel does not currently have the ability to append, delete etc.
The only workaround I have found so far is to create the whole Tabs container and all tabs in a function using Qt.createQmlObject. Horribly hackey and the string gets unmanageable very quickly but does work.
My current working code can be seen here: http://pastebin.com/dmyPkyyX (see the fillTabs function)