Results 1 to 2 of 2

Thread: Howto select/show a QWebElement in QWebview

  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Howto select/show a QWebElement in QWebview

    I've written a small html traversal tool like http://doc.qt.nokia.com/4.6/webkit-domtraversal.html But now I want, that the preview jumps on a click in the treeview to the selected element (Not just highlight like in http://doc.qt.nokia.com/4.6/webkit-simpleselector.html)

    I've found nothing in the API to achieve this. Did I miss something?

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Howto select/show a QWebElement in QWebview

    Ok, my solution is now to traverse trough the dom and setting an id if the node has no id. Clicking in the treeview just opens the same html page with that id as fragment <url>l#id

Similar Threads

  1. QWebElement available for QtScript, Marshaling/Template?
    By jasonknight in forum Qt Programming
    Replies: 2
    Last Post: 17th July 2012, 17:38
  2. QWebElement::evaluateJavaScript strange behaviour
    By piotr.dobrogost in forum Qt Programming
    Replies: 3
    Last Post: 11th January 2011, 11:45
  3. Replies: 1
    Last Post: 30th July 2010, 07:23
  4. Dynamically create SVG with QWebElement
    By yawar in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2010, 03:53
  5. How to show/draw focus & select at the same time
    By tanminh in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2006, 21:06

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.