[Qt-interest] QThread and QNetworkProxy

Serg_HD serg_hd at mail.ru
Fri May 14 16:42:56 CEST 2010


Hi all, I have some problem with QNetworkProxy.
There one main thread and many child threads. 
Each of child thread has two signals: to create QWebView and to remove themselves.
Secondary thread works with QWebView (which was created in Main thread and returned to child thread).
If I in the child thread for my QWebView use QNetworkProxy, namely:

this->_webView->page()->networkAccessManager()->setProxy(
   QNetworkProxy(QNetworkProxy::HttpProxy, this->serviceProxyIp, this->serviceProxyPort)
  );

Then I delete thread I have sometimes memory write/read error and application crash. 
Without using proxy all works fine.

Destructor of child thread:
ThreadCore::~ThreadCore()
{
 delete this->_webView;
 this->quit();
 this->wait();
}

Please help me (second day I can not decide it). Very thanks.



More information about the Qt-interest-old mailing list