Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Window Freeze

$
0
0
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);         QMainWindow *wx = new mBROWSERQT(NULL,true);         QWebView *wv = wx->findChild<QWebView*>("mybrowsertest");           wx->showNormal();         return wv->page();     } };   ...   ui->mybrowsertest->setPage(new myWebPage());

Viewing all articles
Browse latest Browse all 22112

Trending Articles