Hello! Thats almost all code (network communication part).
I've already tried without deleteLater() but nothing changed.
Hello! Thats almost all code (network communication part).
I've already tried without deleteLater() but nothing changed.
You are creating "UserApi friends" on the stack, it will be destroyed immediately after you call updateFriendsList().
Btw, a QNetworkAccessManager can handle multiple requests, you don't necessarily have to create a new one for each request.
Cheers,
_
Howdy! So i should use singleton of ApiHandler or there is a different approach (with example)?
Thanks in advance!
Bookmarks