문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top