Of course this functionality is necessary, all troubles now are connected with
using of VisualItemModel. Control must be rewritten with more usable model in
my opinion.
01.07.13 13:49 Joey Chan написал(а):
Hi Geeks,
I'm a member in RSS reader team.
What I am doing now is creating dynamic Tabs for different topics.
Solution 1: ( fail )
<code>
var component;
var sprite;
component = Qt.createComponent("./TabTest.qml");
sprite = component.createObject(tabs, {});
</code>
I think the reason is that, the Tab is not the child of the Tabs, but maybe the
child of Tabs.tabsModel
Solution 2: ( success )
<code>
Repeater // at the end inside the Tabs
{
id: repeater
model: 2
Tab{ title: i18n.tr("test") }
}
</code>
I found this solution in Tabs's source code, but not easy to manage them(tabs)
Opinion:
Is it possible to add some functions in Tabs? like: addTab(Item),
TabAt(index), etc.. I think it will be an easy way to manage dynamic tabs
BR,
Joey
--
Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
More help : https://help.launchpad.net/ListHelp