1

I have been struggling this problem lately and couldn’t find any solution for that. So, I’d appreciate if you could really look into this.

There is a target website which runs JQuery when I click on a specific button. When I connect to the signals of QWebView and QNetworkAccessManager, I see the it hangs loading jquery_modules.min_22190.js. I have no clue why this happens.

Here is a minimal code that you can try and see: https://www.dropbox.com/s/4rooelcjbcl9qus/minimal_webview.zip

Last thing that I see in the logs:

finished  "Unknown error" , code: 0  QUrl( "http://www2.thewebsite.be/nl/js/jquery/jquery_modules.min_22190.js" )  
Header 1 = "Date" :  "Sat, 26 Jul 2014 08:50:55 GMT"
Header 2 = "Server" :  "Apache"
Header 3 = "X-Frame-Options" :  "SAMEORIGIN"
Header 4 = "Cache-Control" :  "max-age=604800"
Header 5 = "Expires" :  "Sat, 02 Aug 2014 08:50:55 GMT"
Header 6 = "Vary" :  "Accept-Encoding,User-Agent"
Header 7 = "Content-Encoding" :  "gzip"
Header 8 = "P3P" :  "CP='NOI DSP COR PSAo PSDo'"
Header 9 = "Keep-Alive" :  "timeout=5, max=200"
Header 10 = "Connection" :  "Keep-Alive"
Header 11 = "Content-Type" :  "text/html; charset=iso-8859-15"

Thanks a lot in advance,

4
  • RUn Wireshark and follow the TCP stream for this request. Should give you something to go on. Commented Jul 27, 2014 at 17:33
  • Why wireshark? The webpage loads perfect with Chrome. I din't get the idea behind it. Thanks. Commented Jul 28, 2014 at 4:19
  • You may find you're getting an unexpected response or HTTP error behind the scenes that QWebView is choking on. Commented Jul 28, 2014 at 16:16
  • I could not reproduce the problem: http://www2.thewebsite.be/nl/js/jquery/jquery_modules.min_22190.js not found. Try this: github.com/brcontainer/qt-helper/tree/master/net/network Commented Aug 6, 2014 at 17:33

1 Answer 1

1

I have solved the issue by moving to Qt 5.3. The above mentioned problem is not reproducible there.

Sign up to request clarification or add additional context in comments.

1 Comment

which version of Qt (and QWebKit) were you using?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.