Forums

OverviewFelgo 2 Support (Qt 5) › is there a way to 'reuse' images on a list model?

Tagged: 

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

    jrrobles79

    I have a list model view an on the delegate I have an Image that loads the user avatar, I have notice that sometimes this is a bit slow, is there a way to cache the loaded images and just call it again what is need it?

     delegate: CheckPointRow {                  
                        width: parent.width                   
                        msgOwnerUsername:taskFullDetail.username_owner
    ...
    ...
    
    //on CheckPointRow component:
    onMsgOwnerUsernameChanged:{
          avatar.source = viewHelper.getAvatarUserImage(msgOwnerUsername) //get an valid image url if not get a default image
    }
    
    Image{
    id: avatar
    source: ""
    }
    
    

     

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