示例#1
0
文件: Main.cpp 项目: saiksy/sandboxed
void doTarget(int argc, char *argv[]) {
    // Create application
    QApplication::setGraphicsSystem( "raster" );
    QApplication app( argc, argv );

    QWebView webView;

    QAction *copyAction = webView.pageAction(QWebPage::Copy);
	copyAction->setShortcut(QKeySequence::Copy);
    webView.addAction(copyAction);

    webView.load(QUrl("http://www.google.com"));
    webView.show();

    MPMEventLoop loop;
    app.exec();
}