Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. DOM Access to Qt5 QML WebView
Forum Updated to NodeBB v4.3 + New Features

DOM Access to Qt5 QML WebView

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.5k 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.
  • S Offline
    S Offline
    skycrestway
    wrote on last edited by
    #1

    I want to use a Qt5 QML WebView (QtWebKit 3.0) and access the DOM of the document in the WebView. Specifically, I want to select a word in the WebView and get some DOM attributes associated with that word. The html document is a string generated by the program.

    I have done this before in a non-QML Qt program using javascript in the document that calls c++ with the DOM attributes. This does not seem to be possible with a QML WebView. Does anyone know how to access the DOM of a WebView?

    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