[webkit-qt] QWebPage- Do not render if redirect

Tarandeep Singh tarandeep at gmail.com
Mon Sep 26 12:39:01 PDT 2011


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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110926/47afa274/attachment.html>

More information about the webkit-qt mailing list