[webkit-qt] QWebPage- Do not render if redirect
Jarred Nicholls
jarred at sencha.com
Mon Sep 26 12:45:32 PDT 2011
On Mon, Sep 26, 2011 at 3:39 PM, Tarandeep Singh <tarandeep at gmail.com>wrote:
> Hi,
>
> I am using QWebPage to load urls. Sometimes url redirects to different url
> (either using http redirect or by using javascript).
>
> What I am trying to accomplish here is- if a redirect occur, stop rendering
> the page and simply print/return the redirected url. I connected QWebFrame's
> signal -urlChanged and then tried to call
>
> page->triggerAction( QWebPage::Stop);
>
> But my process crashes.
>
> So is there a way to accomplish what I am trying to do here and how?
>
You could override the
QWebPage::acceptNavigationRequest<http://doc.qt.nokia.com/latest/qwebpage.html#acceptNavigationRequest>
>
> Thanks,
> Tarandeep
>
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
>
--
................................................................
*Sencha*
Jarred Nicholls, Senior Software Architect
@jarrednicholls
<http://twitter.com/jarrednicholls>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110926/960de9f0/attachment.html>
More information about the webkit-qt
mailing list