franza
franza

Reputation: 2317

How to import QML file to another QML file in Cascades, Blackberry 10

This question maybe doesn't have anything common with Cascades, but I'm a newbe in QML so let it be. I have tabbed pane and I want to keep the contents of each page in separate files. Example:

TabbedPane {
    Tab {
        Page {
            //import from file page1.qml
        }
    }
    Tab {
        Page {
            //import from file page2.qml            
        }
    }
}

How should I do this?

Upvotes: 0

Views: 844

Answers (1)

Konrad Lindenbach
Konrad Lindenbach

Reputation: 4961

Like this:

Tabbed Pane {
    Tab {
        Page1 {
        }
    }
    Tab {
        Page2 {
        }
    }
}

Assuming Page1.qml and Page2.qml exist

Upvotes: 1

Related Questions