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. Clear History of everything in QWebEngine
Forum Updated to NodeBB v4.3 + New Features

Clear History of everything in QWebEngine

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 616 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.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by aha_1980
    #1

    Hello,

    I am using QT 5.13.0 with Msvc 2017, I created a simple QWebEngineView by adding an empty widget and promot it to the QWebEngineView, then I added this code in the constructor

        connect(ui->widget, SIGNAL(loadProgress(int)), this, SLOT(LoadProgress(int)));
        connect(ui->widget, SIGNAL(loadFinished(bool)), this, SLOT(LoadFinished(bool)));
        hisotry = ui->widget->history();
    

    I got the hisotry of the QWebEngineView using ui->widget->hisotry(); in the QWebEngineHisotry
    then I use this methode which I think it should clear all the hisotry which is chace, all visited links and so on, like on firefox or chrome setting which with one button I clear everything.

    hisotry->clear();
    

    The problem is I made a login to my Instagram account when I go to the website again I found that my login is active, so it did not clear everything.

    So what I did wrong or how to clear everything by a simple method for all the QWebEngine for this project, and also where qwebengine save the data which is history and logins of this project.

    Thanks in advance.

    jsulmJ 1 Reply Last reply
    0
    • AmrCoderA AmrCoder

      Hello,

      I am using QT 5.13.0 with Msvc 2017, I created a simple QWebEngineView by adding an empty widget and promot it to the QWebEngineView, then I added this code in the constructor

          connect(ui->widget, SIGNAL(loadProgress(int)), this, SLOT(LoadProgress(int)));
          connect(ui->widget, SIGNAL(loadFinished(bool)), this, SLOT(LoadFinished(bool)));
          hisotry = ui->widget->history();
      

      I got the hisotry of the QWebEngineView using ui->widget->hisotry(); in the QWebEngineHisotry
      then I use this methode which I think it should clear all the hisotry which is chace, all visited links and so on, like on firefox or chrome setting which with one button I clear everything.

      hisotry->clear();
      

      The problem is I made a login to my Instagram account when I go to the website again I found that my login is active, so it did not clear everything.

      So what I did wrong or how to clear everything by a simple method for all the QWebEngine for this project, and also where qwebengine save the data which is history and logins of this project.

      Thanks in advance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AmrCoder "Returns a pointer to the view's history of navigated web pages." (from documentation).
      So, it returns a list of visited web pages, this is unrelated to log-in data.
      I don't know how to delete those.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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