void WebFrameLoaderClient::dispatchShow() { WebPage* webPage = m_frame->page(); if (!webPage) return; webPage->show(); }
QString WebPage::openPageSilently(const QString &url, const QString &step, const QString &retProp){ WebPage *wb = new WebPage(m_pApp); wb->setProperty("nextStep", step); wb->openUrl(url, m_scriptFilename); wb->show(); int a = 0; QString ret = wb->getProperty(retProp); int b = 0; return ""; }
int main( int argc, char ** argv ) { // start application QApplication app( argc, argv, TRUE ); // load default widget WebPage * mWebPage = new WebPage(); mWebPage->show(); mWebPage->raise(); mWebPage->activateWindow(); // start application event loop return app.exec(); }