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 14 Jun 2015, 17:59 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.

    P 1 Reply Last reply 15 Jun 2015, 06:00
    0
    • K keya
      14 Jun 2015, 17:59

      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.

      P Offline
      P Offline
      p3c0
      Moderators
      wrote on 15 Jun 2015, 06:00 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

      2/2

      15 Jun 2015, 06:00

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved