PDA

View Full Version : QWebView - retrieving information?



lamera
25th September 2008, 13:55
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

durbrak
25th September 2008, 18:53
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.