Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded