I don't know why but when the first request is executed the GUI freezes (W7x64, QT5.3, MinGW)

I tried disable the proxy config but without results.

first-xhr-slow.zip

Qt Code:
  1. #include "mainwindow.h"
  2.  
  3. MainWindow::MainWindow() {
  4.  
  5. this->setUrl(QUrl("qrc:/index.html"));
  6.  
  7. this->setMaximumSize(QSize(200, 200));
  8.  
  9. // No proxy
  10.  
  11. QNetworkProxyFactory::setUseSystemConfiguration(false);
  12.  
  13. this->page()->networkAccessManager()->setProxy(QNetworkProxy::NoProxy);
  14.  
  15. // Debug
  16.  
  17. this->page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
  18.  
  19. QWebInspector *inspector = new QWebInspector();
  20.  
  21. inspector->setPage(this->page());
  22.  
  23. inspector->setVisible(true);
  24.  
  25. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. <html>
  2.  
  3. <body>
  4.  
  5. <div id="counter"></div>
  6.  
  7. <button id="request">request</button>
  8.  
  9. <script>
  10.  
  11. var counter = document.getElementById('counter'),
  12.  
  13. index = 0;
  14.  
  15. setInterval(function() {
  16.  
  17. counter.innerText = index++;
  18.  
  19. }, 100);
  20.  
  21. document.getElementById('request').onclick = function() {
  22.  
  23. var r = new XMLHttpRequest();
  24. r.open('get', 'http://google.com');
  25. r.send();
  26.  
  27. };
  28.  
  29. </script>
  30.  
  31. </body>
  32.  
  33. </html>
To copy to clipboard, switch view to plain text mode