Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Stopping a URL from re-freshing
Qt 6.11 is out! See what's new in the release blog

Stopping a URL from re-freshing

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 461 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.
  • James SprinksJ Offline
    James SprinksJ Offline
    James Sprinks
    wrote on last edited by
    #1

    Hi All

    I have loaded a URL into a QFrame using QWebView as follows:

     QUrl site("http://192.168.100.41");
     ui->screen->load(site);
    

    On the website, there is a text box I wish the user to be able to enter text into.
    Unfortunately, the site refreshes every few seconds, and when this happens the focus on the text box is lost, so the user has to keep on re-clicking on the box to enter text.

    Is there anyway to keep focus on the text box (i.e. keep the text cursor flashing), or stop the page refreshing every 3 seconds?

    Thanks

    James

    Pablo J. RoginaP 1 Reply Last reply
    0
    • James SprinksJ James Sprinks

      Hi All

      I have loaded a URL into a QFrame using QWebView as follows:

       QUrl site("http://192.168.100.41");
       ui->screen->load(site);
      

      On the website, there is a text box I wish the user to be able to enter text into.
      Unfortunately, the site refreshes every few seconds, and when this happens the focus on the text box is lost, so the user has to keep on re-clicking on the box to enter text.

      Is there anyway to keep focus on the text box (i.e. keep the text cursor flashing), or stop the page refreshing every 3 seconds?

      Thanks

      James

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @James-Sprinks is this behavior the same if you connect to that page using a web browser (i.e. Chrome or Firefox)? did you check the web page source code to see if there's any javascript code running the refresh?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • James SprinksJ Offline
        James SprinksJ Offline
        James Sprinks
        wrote on last edited by James Sprinks
        #3

        Yep the behaviour is the same in terms of refreshing - but focus is not lost on the text box.

        J

        1 Reply Last reply
        0

        • Login

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