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. how to clear the contents on QWebEnginePage?
Qt 6.11 is out! See what's new in the release blog

how to clear the contents on QWebEnginePage?

Scheduled Pinned Locked Moved Solved QtWebEngine
3 Posts 2 Posters 1.0k Views
  • 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote on last edited by
    #1

    QWebengineView is used to display some html contents on the GUI. They need to be cleaned up some time later.
    I can not see any clear functions in the doc of QWebEnginePage. Simply set empty contents to QWebEnginePage?

    JonBJ 1 Reply Last reply
    0
    • JoeCFDJ JoeCFD

      QWebengineView is used to display some html contents on the GUI. They need to be cleaned up some time later.
      I can not see any clear functions in the doc of QWebEnginePage. Simply set empty contents to QWebEnginePage?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by JonB
      #2

      @JoeCFD said in how to clear the contents on QWebEnginePage?:

      They need to be cleaned up some time later.

      Why?

      Simply set empty contents to QWebEnginePage?

      That's all you can do. Other than deleting the whole QWebEnginePage. Or maybe something esoteric like directing it to about:blank!

      1 Reply Last reply
      1
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        The content has some animation and is not needed anymore. But the QWebEnginePage will be used later. Therefore, it is better to clean it up first. I have already set html to empty. Thanks for your reply.

        1 Reply Last reply
        1

        • Login

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