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.

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