Results 1 to 2 of 2

Thread: Accessing complete QWebFrame document tree, not just elements

  1. #1
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Accessing complete QWebFrame document tree, not just elements

    I don’t know the thinking that went into the design of the QtWebKit interface, but not being able to do the following really limits its usefulness:

    • Can’t access nodes, only elements
    • Can’t (easily) get the QWebFrame for an iframe/frame element


    I need to traverse the DOM tree and access everything, which means I need access to underlying WebCore classes.
    A few posts exist on accessing WebCore from a Qt project, but they don’t work on my 4.8.0/MSVC2010 system as I get unresolved external symbol errors on linking. Linking against JSCore.lib results in duplicate symbol errors.

    Anyone got a proven method for doing this? I’m not a C++ man so hit the limits on figuring out what to do.
    At the moment I’m adding additional methods to QWebPage and compiled up my own QtWebKit.dll to do what I need, but would prefer not too. Don't mind distributing these changes so using LGPL.

    Thanks for any assistance, I really like Qt otherwise (coming from a .NET man)

  2. #2
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Accessing complete QWebFrame document tree, not just elements

    I have same problem. Does anybody know how to find QWebFrame related to <IFRAME> QWebElement ?

Similar Threads

  1. Accessing elements of a svg file
    By Hogwarts in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2011, 14:00
  2. QWebFrame scroll down to the max.
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2009, 22:55
  3. accessing table elements in Qt
    By awanish_jmi in forum Newbie
    Replies: 5
    Last Post: 28th July 2008, 12:51
  4. accessing gui elements from parent
    By chemstar in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2006, 11:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.