Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Open Qml Page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21493

    Paolo Mazzon

    tell me if I understand correctly, can’t you open an external Qml file? I would like to make several Qml files for my windows but load them from the main drower, but I can’t do that. From what I read should I do all the pages in the Main.qml?

     

    App {
    
        Navigation {
            // enable both tabs and drawer for this demo
            // by default, tabs are shown on iOS and a drawer on Android
            navigationMode: navigationModeDrawer
    
            NavigationItem {
                title: "Home"
                icon: IconType.home
    
    
    
                NavigationStack {
    
                    id:navigationStack
    
                    ListPage     {
                        id: page
                        title: "App Paolo"
    
    
                        model: ListModel {
    
                            ListElement {
                                name: "Riparazioni"
                                type1: "section1"
                                page: "Riparazioni.qml"
    
                            }
                            ListElement {
                                name:"Magazzino"
                                type1: "section1"
                                page: "Magazzino.qml"
                            }
                        }
                        delegate: SimpleRow {
                            text: name
                            onSelected: navigationStack.push(Qt.resolvedUrl(page))
                        }
    
                    }
                }
            }
            NavigationItem {
                  title: "Setting"
                  icon: IconType.list
    
                  //page with sub page navigation
                  NavigationStack {
                      
                      //QML FILE EXTERNAL*////////////////////////////
                      Settings{}
    
    
    
                  }
        }
            
    }
    
    
    }

     

     

     

    #21506

    Alex
    Felgo Team

    Hi,

    you can load QML files from web URL with the Loader component. You can also have a look at the DownloadableResources type.

    Cheers,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.