Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 4
Registered: ‎01-06-2013
My Device: Playbook, Dev Alpha A
My Carrier: drei.at

Problems with complex Navigation



I'm currently developing an app with a more advanced Navigation and got stuck.

For example my main.qml

TabbedPane {
    id: tabbedPane
    showTabsOnActionBar: true
    Tab {
        title: "LogIn"
        content: NavigationPane {
            id: navPane
            Page {
                ControlDelegate {
                    id: logincd
                    source: "loginPage.qml"
                    delegateActive: true
                onCreationCompleted: {
                    registercd.delegateActive = true
            attachedObjects: [
                ComponentDefinition {
                    id: feedPage
                    source: "feedPage.qml"
    } // end of first Tab
    Tab {
        title: "Register"
        content: Page {
            ControlDelegate {
                id: registercd
                source: "registerPage.qml"
    } // end of second Tab
}// end of TabbedPane

 As you see I'm using a NavigationPane inside a TabbedPane with a Dynamic QML component to optimize my loading time but now in my loginPage.qml there is the button which controls the navigationPane but obviously it's in a different QML File and therefore i can't access the navigationPane OR the attached ComponentDefinition.



import bb.cascades 1.0

Container {
    Label {
        text: "loginPage"
    Button {
        text: "Login"
        onClicked: {
            var newPage = feedPage.createObject();

 How can this onClicked event control the navigationPane? Or do i have to pack everything in a big QML file which would result in horrible loading times.

Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Problems with complex Navigation

Not sure if this is the best method but you can try passing the NavigationPane using the global Qt object. Here's an example on how to do this:


Andrey Fidrya, @zmeyc on twitter
New Contributor
Posts: 4
Registered: ‎01-06-2013
My Device: Playbook, Dev Alpha A
My Carrier: drei.at

Re: Problems with complex Navigation

unfortunately that did not work in my example. I think the issue are the different .qml files and I don't know how to interact between them.

New Developer
Posts: 9
Registered: ‎01-11-2013
My Device: BB10
My Carrier: Rogers

Re: Problems with complex Navigation

Did you find a solution as I have exactly the same problem ?