← Back to team overview

ubuntu-touch-coreapps team mailing list archive

Re: [RSS Reader]

 

I came back!
Tomorrow I will start work ;)


2013/4/14 <mrqtros@xxxxxxxxx>

> I will come from my vocations today, Svenn! From my workplace I will have
> more chances to help ;)
>
> 14.04.13 3:43 Svenn-Arne Dragly написал(а):
> Hi,
>
>  Thanks for the tip. :) I should have mentioned that I have already read
> about that and am able to create dynamic components. However, nothing
> happens if I set their parent to be the Tabs component, and I cannot
> find a way to append a dynamically loaded component to the Tabs
> component's tabsModel property that contains each of tabs that are set
> initially.
>
>  The tabsModel property appears to be of the type VisualItemModel, which
> does not have any append/add function. It seems that I'm only able to
> set its contents statically.
>
>
>  Svenn-Arne
>
>  On Sat 13 Apr 2013 09:25:19 PM CEST, Joey Chan wrote:
> > Hi,
> >
> > pls check "Dynamic QML Object Creation from JavaScript" in Qt document
> >
> > :)
> >
> >
> > 2013/4/14 Svenn-Arne Dragly <s@xxxxxxxxxx <mailto:s@xxxxxxxxxx<s@xxxxxxxxxx>
> >>
> >
> > Hi,
> >
> > I'm trying to test out tabbed navigation for the RSS reader, where I
> > would like to switch between different feeds by swiping left/right.
> > However, I can't seem to find any way to implement dynamic
> > adding/removal of tabs in the Ubuntu Tabs component.
> >
> > Currently, I'm stuck with making a long list of tabs in the Tabs
> > component to be able to at least set them dynamically by accessing
> > ourTabs.__tabsModel.children[i]. This does however not seem like a
> > very
> > good solution:
> >
> > ...
> >
> > function refresh() {
> > ...
> > ourTabs.__tabsModel.children[i].title = feed.displayName
> > ...
> > }
> > Tabs {
> > id: ourTabs
> > anchors.fill: parent
> >
> > Tab {}
> > Tab {}
> > Tab {}
> > Tab {}
> > ...
> > }
> >
> > ...
> >
> > Do you know of a better way to add/remove tabs dynamically?
> >
> >
> > Cheers,
> > Svenn-Arne
> >
> >
> > --
> > Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
> > Post to : s@xxxxxxxxxx
> > <mailto:s@xxxxxxxxxx <s@xxxxxxxxxx>>
> > Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
> > More help : https://launchpad.net/~ubuntu-touch-coreapps
> >
> >
>
> --
>  Mailing list: https://launchpad.net/~ubuntu-touch-coreapps
> Post to : s@xxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-touch-coreapps
> More help : https://launchpad.net/~ubuntu-touch-coreapps
>
>
>

References