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) › Separating page code from navigation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19783

    Gabor Toth

    Hi,

    A section of my Main.qml looks like this:

            NavigationItem {
                title: "Add a Friend"
    
                NavigationStack {
                    Page {
                        id: addFriend1
                        title: "Add a Friend"
                             }
                }
            }
        }
    

    The addFriend1 code is a !long data entry form and I don’t want to include it on the navigation page. Is there a way including the whole page in the navigation page by referencing it?

    Thank you.

    #19785

    Günther
    Felgo Team

    Hi Gabor,

    yes, sure you can separate your components into different QML files.

    I recommend to have a look at our open-source demos and examples to see how the projects are set up.
    We also provide some tutorials to learn different aspects of the engine – they are definitely worth a look. The most basic one is Getting Started with Felgo and Qt Creator.

    Best,
    Günther

    #19793

    Gabor Toth

    Thank you.

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

RSS feed for this thread

You must be logged in to reply to this topic.