Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Clear History of everything in QWebEngine

    General and Desktop
    2
    2
    344
    Loading More Posts
    • 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.
    • AmrCoder
      AmrCoder last edited by aha_1980

      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.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @AmrCoder last edited by

        @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 Reply Quote 0
        • First post
          Last post