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

Clear History of everything in QWebEngine



  • 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.


  • Qt Champions 2019

    @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.


Log in to reply