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. How to find a DOM element in Qt using javascript
Forum Updated to NodeBB v4.3 + New Features

How to find a DOM element in Qt using javascript

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

    Hi,

    To find a HTML DOM object using javascript we will say something like
    obj = document.getElementById("someId")
    I want to know if we can find the objects similary like this using javascript in Qt.

    Thanks in Advance.

    p3c0P 1 Reply Last reply
    0
    • K keya

      Hi,

      To find a HTML DOM object using javascript we will say something like
      obj = document.getElementById("someId")
      I want to know if we can find the objects similary like this using javascript in Qt.

      Thanks in Advance.

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi @keya,
      Yes it can be done. If you are using QWebView it can be done by using evaluateJavaScript for both QWebframe and QWebElement.

      157

      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