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

Forums

OverviewFelgo 2 Support (Qt 5) › best practices to navigate and present data on a page?

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

    jrrobles79

    Right now I have been testing how to present the data of a page more efficient, if I do: navStack.push(profilePage)

     onAppeared: {
          logic.getUserProfile(). //call to api to get user profile info
    }

    some times the page presentation animation gets ‘stuck’ until the api finish, It gives the looks that the app is crashing

     

    also I have tryed to add a Timer

    
      onAppeared: loadInfoTimer.start()    
    
    
    Timer {
            id: loadInfoTimer
            interval: 500
            triggeredOnStart: false
            repeat: false
            onTriggered: {
                logic.getUserProfile()
            }
            
        }

     

    This runs the presentation animation ok, but have a delay until the data is loaded, this is a bit slow too.

     

    Also I have this case, when I need a data from an api to call another api, like this:

    onAppeared:{

    logic.fetchTaskDetail(taskId)

    }

    Connection{

    target:dataModel

    onTaskDetailFetched:{

    logic.fetchRequesterUserInfo(taskDetail.owner)

    }

    onRequesterInfoFetched:{

    //do something…

    }

    }

     

    what is the best practice you do to make the data presentation better or look  quickly or smooth

     

     

     

     

     

     

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