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

Forums

OverviewFelgo 3 Support (Qt 5) › What is the scope of navigation item?

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

    Niyazi

    Navigation is not working. I am wondering, what is the scope of navigation item? In below example the navigation item is in the pages folder.

    Main.qml just calls MainPage.qml. And my navigation item it is in the MainPage.qml. Any help please?

     

    test.pro
    Sources(folder)
    Resources
    	resources.qrc
    		/
    			qml(folder)
    				pages(folder)
    					HomePage.qml
    					Account.qml
    				Main.qml
    				MainPage.qml
    				
    				
    ----------------				
    MainPage.qml
    ----------------
    import Felgo 3.0
    import QtQuick 2.10
    import QtQuick.Controls 2.2
    
    import "pages"
    import "widgets"
    
    
    Page {
        Navigation {
    
            navigationMode: navigationModeTabs
    
            NavigationItem {
                title: qsTr("First Page")
                icon: IconType.square
    
                MainPage {}
            }
    
            NavigationItem {
                title: qsTr("Second Page")
                icon: IconType.circle
    
                AccountPage {}
            }
    
        }
    
    }
    

     

    #18713

    Alex
    Felgo Team

    This is a bit confusing. In the text you say one time “navigation item is in the pages folder” and one time “navigation item it is in the MainPage.qml”.

    Also you Indicate that you post the ode of your “MainPage.qml”, but in the code you actually use MainPage?

    Also why is the Navigation a child of a Page and not an App component?

    Cheers,
    Alex

    #18760

    Niyazi

    Sorry for this. I change the my app design.

Viewing 3 posts - 1 through 3 (of 3 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