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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support