views:

205

answers:

0

Good day, How I can use QWebView with method load() in threads? I have create QWebView in main(!) thread, but I can't use load() with QWebView (used signals/slots from other threads to do it):

QWebView wv = new QWebView(); //ok QUrl url = new QUrl("http://somesite.com/"); //ok wv.load(url); //ERROR: QObject: Cannot create children for a parent that is in a different thread.

In c++ it work. Please, help me!

p.s. sorry for my English