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

Forums

OverviewFelgo 3 Support (Qt 5) › doubt about NavigationStack clearAndPush

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #23601

    jrrobles79

    I was having some issues with some androids of how to present some pages, for some reason the ‘<b>popAllExceptFirstAndPush‘ pop to the the first page but never pushed to the given page, so I tryed with ‘clearAndPush’ method, and apparantly that solved the problem but now I have this issue: </b>

    On the start of the app I do this steps:

    1. OnPos coordinate: Get user zone , to check if we have service on that area,
    2. on valid zone : check stored session id is still valid
    3. if valid go to main page if not go to login page

    All of this functions where locked with the ‘isCurrentStackPage’ but now even when I cleared,and Im on the main page or login page,  the pos is triggering the getzone function ignoring the flag, I don’t know why the property is true if is not the current stack page,  the page was already cleared, I need to destroy it or something? or I understand something wrong of how the Navigation works?

      Connections {
            target: posSrc
            onHasError: {
                if (!isCurrentStackPage) {
                    return
                }
                grantLocationPopUp.open()
                resetButton()
            }
    
            onCoordFetched: {
     // this is being ignored and is repeated every time the 
    // pos is refreshed even when I have already left the page
                if (!isCurrentStackPage) {
                    return
                }
               
                loadZone()
            }
        }
    
    
    Connections
    {
    target: dataModel
    onSessionValid: {
             if (!isCurrentStackPage) { 
                    return
                }
    
              if(valid){
                navStack.clearAndPush(mainPage)
              }else{
                navStack.clearAndPush(loginPage)
      }
    
    }
    
    
    }
    

     

     

     

Viewing 1 post (of 1 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