Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Stopping a URL from re-freshing



  • 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



  • @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?



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

    J


Log in to reply