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. [Solved] QWebElement::toOuterXml() only returns the first 102 characters?
Forum Updated to NodeBB v4.3 + New Features

[Solved] QWebElement::toOuterXml() only returns the first 102 characters?

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 776 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.
  • C Offline
    C Offline
    Chris79
    wrote on last edited by
    #1

    Hi all,

    I want to get the complete HTML source of a page I just rendered in a QWebView.

    From what I understand from the doc I should be able to get the main document element and just put it out the way I tried it in the source below. This seems to work, but the result from toOuterXml() always ends after 102 characters. Any suggestion what is going on? Thanks!

    @
    QWebFrame *_frame = m_mainWindow->currentWebFrame();
    QWebElement _htmlElement = _frame->documentElement();
    QString _html = _htmlElement.toOuterXml();
    @

    Best
    Chris

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris79
      wrote on last edited by
      #2

      I just figured out the problem is limited to debug builds on osx. If I build release it works. Debug builds on linux work as well.

      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