<div class="gmail_quote">On Mon, Sep 26, 2011 at 3:39 PM, Tarandeep Singh <span dir="ltr"><<a href="mailto:tarandeep@gmail.com">tarandeep@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br><br>I am using QWebPage to load urls. Sometimes url redirects to different url (either using http redirect or by using javascript). <br><br>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 <br>



<br>page->triggerAction( QWebPage::Stop);<br><br>But my process crashes.<br><br>So is there a way to accomplish what I am trying to do here and how?<br></blockquote><div><br></div><div>You could override the <a href="http://doc.qt.nokia.com/latest/qwebpage.html#acceptNavigationRequest">QWebPage::acceptNavigationRequest</a></div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>Thanks,<br><font color="#888888">Tarandeep<br>
</font><br>_______________________________________________<br>
webkit-qt mailing list<br>
<a href="mailto:webkit-qt@lists.webkit.org">webkit-qt@lists.webkit.org</a><br>
<a href="http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt" target="_blank">http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(214, 214, 214);font-family:Helvetica;font-size:medium"><div style="color:rgb(0, 0, 0)"><font color="#D6D6D6">................................................................</font></div>

<div style="color:rgb(0, 0, 0)"><br></div><div style="color:rgb(0, 0, 0)"><b><font color="#2D770A">Sencha</font></b></div><div style="color:rgb(0, 0, 0)">Jarred Nicholls<font color="#5F5E5F">, </font><font color="#929292">Senior Software Architect</font></div>

<div><a href="http://twitter.com/jarrednicholls" style="color:rgb(0, 0, 204)" target="_blank"><font color="#003F72">@jarrednicholls<br></font></a></div></span><br>