Results 1 to 2 of 2

Thread: QWebView - retrieving information?

  1. #1
    Join Date
    Jul 2008
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QWebView - retrieving information?

    Hi there!

    I was wondering if it was possible to get some information from a website displayed using QWebView. So if there is a checkbox and the user checks is it possible for the QWebView to somehow receive the signal and perform some action ?

    The reason I'm asking is that I need to write a HTML file myself and depending on what the user clicks, should the QWebView display a real website, so I need to somehow know what the user clicks.

    or maybe could I write it using the QTextBrowser, but then can the QTextBrowser transform itself into a QWebView widget?

    thanks for any help

  2. #2
    Join Date
    Oct 2006
    Location
    Germany
    Posts
    84
    Thanks
    5
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView - retrieving information?

    If you need the "catch" hyperlinks, you can just connect the appropriate signals and/or subclass QWebPage and reimplement QWebPage::acceptNavigationRequest().
    However, for the checkbox-stuff you should consider infiltrating the rendered page with your own custom javascript code and do the appropriate actions.

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13

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.