Forums

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

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