[webkit-qt] Blocking JavaScript request lock whole QT application

Hellagot hellagot at zefix.tv
Wed Feb 15 00:37:36 PST 2012

Hi there,

i am running into a lock with qt webkit 2.2 from qt 4.8. I am trying to call
a url that should actually be handled by a thread of the application holding
the QWebPage.

Here is the JavaScript:

var xmlhttp =  new XMLHttpRequest();
xmlhttp.open('GET', 'http://localhost/somethingthatrunsinalocalthread', false);

problem is:

The QWebPage seems to lock the whole application, including its threads
and sockets. If i replace the false with true, so its a non blocking
JavaScript request, it works.

Is there any way to get this working with blocking request, and isn't
this even a bug, shouldnt threads/sockets work wile QWebPage is waiting
for the request to finish.


More information about the webkit-qt mailing list