Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Web page loading acceleration
Qt 6.11 is out! See what's new in the release blog

Web page loading acceleration

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 1.1k 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.
  • E Offline
    E Offline
    EL-jos
    wrote on last edited by
    #1

    Hey, everybody,
    I'm developing a web browser.
    Here's my simple code:

    #include "controleur.h"
    #include <QWebEngineProfile>
    #include <QWebEngineSettings>
    
    Controleur::Controleur(QWidget *parent) :
        QWidget(parent)
    {
        setupUi(this);
    
        page = new QWebEngineView(this);
        page->settings()->setAttribute(QWebEngineSettings::AllowRunningInsecureContent,true);
    
        page->setGeometry(0,0,750,350);
        page->load(QUrl("https://www.google.com"));
    
        connect(page,&QWebEngineView::loadFinished,this,&Controleur::on_loadFinished);
        connect(page,&QWebEngineView::loadProgress,this,&Controleur::on_loadProgress);
        connect(page,&QWebEngineView::loadStarted,this,&Controleur::on_loadStarted);
    
        page->show();
    
    }
    
    void Controleur::on_loadFinished(bool ok)
    {
        status->setText(" Chargement de la page terminée.");
    }
    
    void Controleur::on_loadProgress(int progress)
    {
        bar->setValue(progress);
    }
    
    void Controleur::on_loadStarted()
    {
        status->setText(" Nouvelle charge de la page est démarrée.");
    }
    
    void Controleur::on_precedent_clicked()
    {
        page->page()->triggerAction(QWebEnginePage::Back);
    }
    
    void Controleur::on_actual_clicked()
    {
        page->page()->triggerAction(QWebEnginePage::Reload);
    }
    
    void Controleur::on_suivant_clicked()
    {
        page->page()->triggerAction(QWebEnginePage::Forward);
    }
    

    my problem is, I can't understand why my browser is really slow.
    it can even take 3 minutes to load the page and even after the signal finished(), I have to wait at least 1 minute to be able to click on the link or something else on the page.
    so I'd like to know how I can speed up the loading of my browser?

    Thanks in advance for your help

    Pablo J. RoginaP 1 Reply Last reply
    0
    • E EL-jos

      Hey, everybody,
      I'm developing a web browser.
      Here's my simple code:

      #include "controleur.h"
      #include <QWebEngineProfile>
      #include <QWebEngineSettings>
      
      Controleur::Controleur(QWidget *parent) :
          QWidget(parent)
      {
          setupUi(this);
      
          page = new QWebEngineView(this);
          page->settings()->setAttribute(QWebEngineSettings::AllowRunningInsecureContent,true);
      
          page->setGeometry(0,0,750,350);
          page->load(QUrl("https://www.google.com"));
      
          connect(page,&QWebEngineView::loadFinished,this,&Controleur::on_loadFinished);
          connect(page,&QWebEngineView::loadProgress,this,&Controleur::on_loadProgress);
          connect(page,&QWebEngineView::loadStarted,this,&Controleur::on_loadStarted);
      
          page->show();
      
      }
      
      void Controleur::on_loadFinished(bool ok)
      {
          status->setText(" Chargement de la page terminée.");
      }
      
      void Controleur::on_loadProgress(int progress)
      {
          bar->setValue(progress);
      }
      
      void Controleur::on_loadStarted()
      {
          status->setText(" Nouvelle charge de la page est démarrée.");
      }
      
      void Controleur::on_precedent_clicked()
      {
          page->page()->triggerAction(QWebEnginePage::Back);
      }
      
      void Controleur::on_actual_clicked()
      {
          page->page()->triggerAction(QWebEnginePage::Reload);
      }
      
      void Controleur::on_suivant_clicked()
      {
          page->page()->triggerAction(QWebEnginePage::Forward);
      }
      

      my problem is, I can't understand why my browser is really slow.
      it can even take 3 minutes to load the page and even after the signal finished(), I have to wait at least 1 minute to be able to click on the link or something else on the page.
      so I'd like to know how I can speed up the loading of my browser?

      Thanks in advance for your help

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

      @EL-jos are you sure your connection is not slow?

      I mean, have you tried with a different browser on same machine?

      what about running this minimal example?

      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

      • Login

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