Pregunta

I have 3 pages with a BlackBerry 10 project

The first page is a navigation pane that contains a page with a list The second page is Page that contains a list The third page is another Page containing a different list

I want to be able to tap an item within my list on the second page so that it takes me to the third page. How can I do this?

¿Fue útil?

Solución

Attach page in second QML

attachedObjects: [
     ComponentDefinition {
         id: thirdPage
         source: thirdPage.qml
     }
]

And open it

//assuming NavigationPane in first QML has id navigationPane
navigationPane.push(thirdPage.createObject()); //assuming NavigationPane in 

Why will this work? Because second QML still has access to first page, or at least its NavigationPane

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top