05-11-2012 03:58 AM
I have 2 qml files. One containing a tabbed pane (tabbedMenu.qml) and the other (ContentContainer.qml) with a container containing a label.
I use the ContentContainer.qml as a template for the tabbedPane pages like so :
(ContentContainer.qml)
Contains a label with id headerLabel
(tabbedMenu.qml)
TabbedPane {
Page {
id: connectTab
paneProperties: TabbedPaneProperties {
title: "Tab"
}
content: ContentContainer {
id: connectContent
Label {
id: testLabelID
text: "Text"
}
}
}
...
Is there a way to update headerLabel's value from tabbedMenu.qml when a tab is changed?
Solved! Go to Solution.
05-11-2012 06:58 AM
I figured it out. I just used a C++ class, registered it as a property and used the class variables to manipulate the variables on the QML side.
See https://bdsc.webapps.blackberry.com/cascades/docum
05-11-2012 09:17 AM
05-11-2012 09:22 AM
Thanks for the reply. This definitely sounds like another good solution to the problem i was having. I will try this!