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

New Developer
Posts: 17
Registered: ‎07-16-2012
My Device: None
My Carrier: None

QML loading file causes error

Hi all,


I'm trying to load a QML file but gives me an error saying:


Problem loading QML File: <unknown file>: bb:Cascades:QmlDocument: Root Object has inherit from bb::Cascades::Control or bb:cascades::AbstractPane.

Code is as follows:

attachedObjects: [
        Sheet {
            id: mainmenusheet
            TabbedPane {
                showTabsOnActionBar: true
                Tab {
                    title: "Main Menu"

                    /* Error is when i call MainMenu{} */
                    Mainmenu {}