@jsulm Thank you so much! I modified the implementation based on your suggestion. And the error was resolved.
For anyone landing at this question in the forum, Qt examples directory has a lot of examples for similar cases. I found 'RSS Listing example' (Examples/Qt-5.9.2/xml/rsslisting) to be helpful for my scenario.