Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [QWebView] MainFrame contains <br> in its Html when it's empty
Forum Updated to NodeBB v4.3 + New Features

[QWebView] MainFrame contains <br> in its Html when it's empty

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 770 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.
  • xiazeyiX Offline
    xiazeyiX Offline
    xiazeyi
    wrote on last edited by
    #1

    After clearing content of QWebView from UI, a <br> tag is still in body of the html got by the following call:
    @
    webView->page()->mainFrame()->toHtml();
    @

    The html string is:
    @
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body text="#000000"><br></body></html>
    @

    Is there any way to get an empty body in such a case?

    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