'How change dynamically tab icon

I need to change in the defaultIcon in loading_icon. I put :

"assets": [
    "src/defaultIcon.icon",

Now when I wait the service that ends the computation, I would change the tab icon and put a "loadingicon".

I mean this tab icon

enter image description here

I don't know how can do this. Anyone can help me?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source