How to create multiple windows in separated threads using Qt?
-
Hello
I want to open multiple windows using multithread with one window one thread on single click.
Please solve this.
Thanks
Zain -
Hello ChrisW67
If it is not possible then please tell me another solution to create multiple webView on single click.
-
Threads are not required to have multiple windows. Something like:
@
void on_button_clicked() {
QWebview *webView1 = new QWebView;
webView1->setAttribute(Qt::WA_DeleteOnClose);
webView1->load(QUrl("http://qt-project.org"));
webView1->show();QWebview *webView2 = new QWebView;
webView2->setAttribute(Qt::WA_DeleteOnClose);
webView2->load(QUrl("http://google.com"));
webView2->show();
}
@ -
Thanks ChrisW67
Also I want to set time for each webView. After particular time webView should be closed.
So will it be feasible to use the code you have provided?
-
Thanks ChristW67
-
Hello
There is issue in when i am setting timer.
I have used code as:
timer->stop
this give exception: "Exception at 0x61a3a53f, code: 0xc0000005: read access violation at: 0x0, flags=0x0"
-
I am unable to solve multhreading functionality to load video on multiple webview & set proxy for it for particular time.
Please tell better solution for this.