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

Forums

OverviewFelgo 2 Support (Qt 5) › push pages to NavigationStack when they aren't part of base navigation.

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

    Edward

    Hello!

     

    I have my base navigation, which for design purposes I want to remain as navigationMode Tabs, however I have several ‘subpages’ which i want to push onto my stack, but are not listed on my tab navigation. For example my navigation is:

     

        Navigation {       
            id: navigationRoot; navigationMode: navigationModeTabs
            NavigationItem {            
                icon: IconType.compass; title: "Explore"
                NavigationStack {HomePage { } }
            }
            NavigationItem {
                icon: IconType.group; title: "Collaborate"
                NavigationStack { Collaborate { } }
            }
            NavigationItem {
                icon: IconType.cameraretro; title: "Post"
                NavigationStack { PostPage { } }
            }
            NavigationItem {
                icon: IconType.paintbrush; title: "Studio"
                NavigationStack { Create { } }
            }
            NavigationItem {
                icon: IconType.book; title: "Organise"
                NavigationStack { Organise { } }
            }
            NavigationItem {icon: IconType.ellipsisv; title: "More"}
        }

     

     

    However I have several other pages which are ‘nested’ within these – Some of which I am using as modals. regardless, of this.

     

    What i am looking to do is ‘push’ other pages outside of this to my stack, however when i try to call stack.push(<page-name>) if they aren’t within my base navigation it fails

     

    My question is: How can I push a <page>.qml to my navigation without it being on my nagivationStack/bar?

    #24398

    Edward

    Solved by attaching the id to each individual ‘stack’ then depending where the pages are nested pushing via that stack!

     

     

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