I wonder if it’s possible to get the parameters passed by window.open, as the following example:
var params = "menubar=yes,location=yes,resizable=yes";
window.open("http://www.cnn.com/", "_blank", params);
I need to get params this menubar=yes,location=yes,resizable=yes in “c++”.
Is it possible to do this using
class cutomWebView : public QWebPage
or
class cutomWebView : public QWebView
or something?
customWebPage.cpp:
QWebPage * customWebPage::createWindow(const QWebPage::WebWindowType type) {
qDebug() << type;
return new MainWindow()->createPage();//createPage is custom function
}
↧