ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #02587
[Bug 1167568] Re: [tabs] Can't create Tabs from a ListModel
raring has seen the end of its life and is no longer receiving any
updates. Marking the raring task for this ticket as "Won't Fix".
** Changed in: ubuntu-ui-toolkit (Ubuntu Raring)
Status: New => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1167568
Title:
[tabs] Can't create Tabs from a ListModel
Status in Ubuntu UI Toolkit:
Fix Released
Status in ubuntu-ui-toolkit package in Ubuntu:
Fix Released
Status in ubuntu-ui-toolkit source package in Raring:
Won't Fix
Bug description:
It should be possible to "dynamically" create many Tab items inside a
Tabs container from a ListModel:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
width: units.gu(20)
height: units.gu(30)
Tabs {
Repeater {
model: 5
delegate: Tab {
title: "Tab " + model.index
page: Page {
Text {
anchors.centerIn: parent
text: "Page " + model.index
}
}
}
}
}
}
This does not work. The error is: file:///usr/lib/x86_64-linux-
gnu/qt5/qml/Ubuntu/Components/Tabs.qml:113: Unable to assign
QQuickRepeater to Tab_QMLTYPE_50
Looking at this, it seems like Tabs internally is looking at its
children and complaining because Repeater is not a Tab. That is, it's
finding Repeater as a child, rather than "running" the Repeater to
generate a bunch of Tab items and then finding the bunch of Tab items
as children.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1167568/+subscriptions