Web View: setting the url doesn't always change the page
I create a QML Element that contains a Web View and a property call homeUrl. I have a function called goHome and it sets the web url to the homeUrl. So when the user wants to go to the home screen I call the goHome function, but if the url doesn't change nothing happens. This is a problem because if the homeUrl web site contains iframes they won't be reset when I set the web view's url to homeUrl. The way I tried to work around this was after setting the web view's url I triggered the reload action on the web view. This worked sometimes: if the web view was not loading a page this worked fine, but if the web view was in the middle of loading a page this would result in the page that was loading being loaded and not the homeUrl page. Does anyone have a solution for a home page?