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(); }