Javapackage weber2; import com.trolltech.qt.QThread;import com.trolltech.qt.core.Qt.ConnectionType;import com.trolltech.qt.webkit.QWebView; public class MainLoop implements Runnable{ public int numCreated = 0, numFinished = 0; public MainLoop() { QThread threadMainLoop = new QThread(this); threadMainLoop.start(); } public void run() { while(true) { try { Thread.sleep(500); } catch (InterruptedException ex) {System.out.println("-->Corrupted error");} //create & start new thread ThreadCore core = new ThreadCore(this); core.signalCreateWebView.connect(this, "createWebView(ThreadCore)", ConnectionType.QueuedConnection); QThread thread = new QThread(core); thread.start(); } } public void createWebView(ThreadCore thread) { QWebView webView = new QWebView(); this.numCreated ++; this.webView.loadFinished.connect(this, "finished()"); this.webView.load(new QUrl("http://qt.nokia.com/")); } private final void finished() { this.numFinished--; // Не знаю как это делается на java, пишу на C++ QWebView *webView = qobject_cast<QWebView*>( sender() ); // Обрабатываем завершение загрузки } }