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. Equivalent direct webkit API for QtWebkit functionality
Forum Updated to NodeBB v4.3 + New Features

Equivalent direct webkit API for QtWebkit functionality

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 4 Posters 3.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.
  • H Offline
    H Offline
    huyanke
    wrote on last edited by
    #1

    hi,

    One thing I am not very clear is that. In QtWebKit, there is a method QWebFrame->evaluateJavaScript() ,which can execute javascript. I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...

    Thanks for any help!!

    Yanke

    1 Reply Last reply
    0
    • H Offline
      H Offline
      huyanke
      wrote on last edited by
      #2

      hi,

      In QtWebKit, we can use

      QWebFrame.documentElement().firstChild()
      QWebFrame.documentElement().nextSibling()
      QWebFrame.documentElement().tagName()

      to access DOM. But what is the corresponding API in WebKit... I guess this functions should be provided originally from WebKit?

      Thanks for any help!!

      Yanke

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Have you checked the sources? The full source code of both Qt Webkit as well as webkit is available, shouldn't take long to answer your question by looking at both.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          I have merged two threads by huyanke that both ask for a direct Webkit equivalent for QtWebkit functions. I am not sure this topic belongs here though. What is the relation with Qt?

          Edit:
          I should say, that I do admire and applaud your curiosity to want to understand the inner workings of the code you are using.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            [quote author="huyanke" date="1305248922"]hi,

            One thing I am not very clear is that. In QtWebKit, there is a method QWebFrame->evaluateJavaScript() ,which can execute javascript. I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...
            [/quote]

            If you are about understanding the inner workings of Qt Webkit (what's my suspicion after the two other threads about "QNetworkRequest utilization":http://developer.qt.nokia.com/forums/viewthread/5826/ and "the http connecting module":http://developer.qt.nokia.com/forums/viewthread/5816/), then you would be better asking on the Qt Webkit devlopers' mailing list(s). Most of the guys here are just using Qt Webkit and are not deeply interested in its inner workings, especially not in the original Webkit API.

            http://www.catb.org/~esr/faqs/smart-questions.html

            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