Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Web View: setting the url doesn't always change the page
Forum Updated to NodeBB v4.3 + New Features

Web View: setting the url doesn't always change the page

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bundickt
    wrote on 4 Oct 2011, 17:01 last edited by
    #1

    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?

    1 Reply Last reply
    0

    1/1

    4 Oct 2011, 17:01

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved