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 how to load only a <div> ?
Forum Updated to NodeBB v4.3 + New Features

QWebView how to load only a <div> ?

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.3k 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.
  • R Offline
    R Offline
    rudm
    wrote on last edited by
    #1

    Hi,

    I managed to load an URL in a QWebView using this:

    @QUrl url("http://www.nfe.fazenda.gov.br/");
    ui->webView->setUrl( url );@

    But my goal is to load/show only one specific <div> by its id (#someId).
    How can I achieve this ?

    Thanks in advance.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      devSJ
      wrote on last edited by
      #2

      Usually, webpage needs to be given:
      QUrl url("http://www.nfe.fazenda.gov.br/test.html");
      ui->webView->setUrl( url );

      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