What would be the best way to prevent a window freeze the other windows?
I tried to move my QMainWindow to a thread (QMainWindow::moveToThread), but this is not possible for the widgets can not be moved.
I'd like to open a new window in a separate process.
The reason is that if this new page has a script to freeze the window he ends up freezing all other windows.
class myWebPage : public QWebPage {
QWebPage * createWindow(QWebPage::WebWindowType type) {
Q_UNUSED(type);
QWebView *wv = wx->findChild<QWebView*>("mybrowsertest");
wx->showNormal();
return wv->page();
}
};
...
ui->mybrowsertest->setPage(new myWebPage());
class myWebPage : public QWebPage {
QWebPage * createWindow(QWebPage::WebWindowType type) {
Q_UNUSED(type);
QMainWindow *wx = new mBROWSERQT(NULL,true);
QWebView *wv = wx->findChild<QWebView*>("mybrowsertest");
wx->showNormal();
return wv->page();
}
};
...
ui->mybrowsertest->setPage(new myWebPage());
To copy to clipboard, switch view to plain text mode
Bookmarks