Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#include <QUrl>
#include <QtWebKitWidgets/QWebView>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow){
ui->setupUi(this);
ui->webView->load(QUrl("http://www.google.com"));
ui->webView->show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment